Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many sheets in an Excel Workbook
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236598
Message ID:
00236658
Views:
8
You should be able to use:

ExcelObj.worksheets.count



>I use the following code to open an Excel Workbook from VFP:
>
>ExcelObj = CreateObject('Excel.Application')
>ExcelObj.Visible = .T.
>ExcelObj.Workbooks.Open("D:\TEST.XLS")
>
>Does anyone know of a way to return the number of WORKSHEETS in the open workbook? I can't seem to find an object property that tells me this.
>
>Thanks
Mark Johns
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform