Hi!
I have macro in separate excel-file and it should format csv-file. Has anyone idea how should this be done. I have tried something like this:
DEF VAR vchExcel AS COM-HANDLE NO-UNDO.
DEF VAR vchWorkBook AS COM-HANDLE NO-UNDO.
CREATE "Excel.Application":U vchExcel.
ASSIGN vchExcel:VISIBLE = FALSE.
ASSIGN vchWorkBook = vchExcel:WorkBooks:OPEN("makro_formatting_report.xls").
vchExcel:Run("auto_open()", "input_file.csv").
RELEASE OBJECT vchWorkBook.
vchExcel:QUIT.
/* or -> RELEASE OBJECT vchExcel. */
but this seems to leave control to the macro-file. Running this externally
..excel.exe input_file.csv makro_formatting_report.xls works..
Regards Tero
I have macro in separate excel-file and it should format csv-file. Has anyone idea how should this be done. I have tried something like this:
DEF VAR vchExcel AS COM-HANDLE NO-UNDO.
DEF VAR vchWorkBook AS COM-HANDLE NO-UNDO.
CREATE "Excel.Application":U vchExcel.
ASSIGN vchExcel:VISIBLE = FALSE.
ASSIGN vchWorkBook = vchExcel:WorkBooks:OPEN("makro_formatting_report.xls").
vchExcel:Run("auto_open()", "input_file.csv").
RELEASE OBJECT vchWorkBook.
vchExcel:QUIT.
/* or -> RELEASE OBJECT vchExcel. */
but this seems to leave control to the macro-file. Running this externally
..excel.exe input_file.csv makro_formatting_report.xls works..
Regards Tero