Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a new sheet in a worksheet in VPF9 ?
Message
 
To
02/01/2016 00:00:25
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01629519
Message ID:
01629550
Views:
46
Try this :
xl = CREATEOBJECT("excel.application")
wb = xl.Workbooks.add
wb.Sheets.Add(,wb.sheets(wb.Sheets.Count),1)
>Hi,
>
>I open a workseet in VFP 9, there are 1 sheet only,
>and I want to add a new sheet after the existing worksheet.
>
>I found the Excel Macro command is
> Sheets.Add After:=Sheets(Sheets.Count)
>
>how to convert it VFP 9 coding ?
>
>Please advise.
>Thanks.
>Derek Yim

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform