2009 Feb 11 3:38 PM
Hello,
i´m downloading some data into excel with Ole way. I need to write data in some differents sheets. Do anyone knows how to active other sheet than the first one?
Thank you.
2009 Feb 11 3:41 PM
Hello,
i´m downloading some data into excel with Ole way. I need to write data in some differents sheets. Do anyone knows how to active other sheet than the first one?
Thank you.
2009 Feb 11 3:41 PM
2009 Mar 06 7:19 AM
Try with this.
CREATE OBJECT gs_excel 'EXCEL.APPLICATION' .
SET PROPERTY OF gs_excel 'Visible' = 1 .
GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooklist .
GET PROPERTY OF gs_wbooklist 'Application' = gs_application .
SET PROPERTY OF gs_application 'SheetsInNewWorkbook' = 1 .
CALL METHOD OF gs_wbooklist 'Add' = gs_wbook .
GET PROPERTY OF gs_application 'ActiveSheet' = gs_activesheet .
SET PROPERTY OF gs_activesheet 'Name' = gv_sheet_name .