Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel: Adding existing worksheets to a workbook
Message
 
To
16/03/2001 13:43:29
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00486033
Message ID:
00486048
Views:
12
Craig,

You can use the copy method like:

ObjExcel.ActiveSheet.Copy(ObjExcel.Workbooks("Target.xls").Sheets("Template"))

where the active sheet is inserted into another file, target.xls, before the sheet "template".


>>>>>>>>>>>>>>> your message below
I am creating a report that the client wants sent as an Excel workbook. Each worksheet will contain specific information. I am using Crystal Reports to create each worksheet, then saving it to an XLS file. However, I need to then add each worksheet to the workbook. I can see how to add a new worksheet to the workbook, but how do I then pull the data into the worksheet?
Previous
Reply
Map
View

Click here to load this message in the networking platform