General information
Title:
How many sheets in an Excel Workbook
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only