Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a new sheet in excel
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Adding a new sheet in excel
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01143725
Message ID:
01143725
Views:
52
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.
~M
Go raibh maith agat

~M
Next
Reply
Map
View

Click here to load this message in the networking platform