Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load Excel template
Message
From
09/06/2005 12:27:25
 
 
To
09/06/2005 12:24:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01021794
Message ID:
01021843
Views:
21
>I have used templates more in Word than in Excel, but I think it is the same idea: You normally don't open a template, to save it with a different name; instead, you directly create a new file, based on the template. I think that would be with the .Add() method.
>

This works as well.
excel = createobject('Excel.Application')
excel.Workbooks.Open('mytemplate.xlt')
excel.ActiveWorkbook.SaveAs('newexcelfile.xls')
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform