Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a new sheet in excel
Message
 
To
08/08/2006 07:05:57
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01143725
Message ID:
01143746
Views:
7
that worked perfectly, thanks Dorin
~M

>>hi all,
>>i am trying to add a new worksheet into an automation program using excel. everything works fine except that i need to add a sheet to the end. At the moment i have Sheet1, Sheet2, Sheet3 and if i add one more it becomes Sheet1, Sheet2, Sheet4, Sheet3 and so on. the excel help says add in a parameter move(after as varient) but i cannot get it to work.
>>OleApp.worksheets.Add
>>OleApp.Sheets(msheet).Select
>>OleApp.Sheets(msheet).Name = "Source"
>>any help much appreciated.
>
>
>OleApp.Worksheets.Add(.null.,OleApp.Worksheets.Item(3))
>
Go raibh maith agat

~M
Previous
Reply
Map
View

Click here to load this message in the networking platform