AndrewMozley
Programmer
I am working with Tamar's very helpful book, "Microsoft Office Automation in Visual Foxpro" to read and write Excel files.
I would like to see all the properties that exist for an workbook object and for a worksheet object. Specifically I need to know how many sheets there are in a workbook so that I can open those that exist, but not get a run-time error if I try to read a non-existent work-sheet. I have an idea that this is accessible via VBA but I do not use VBA very often and have forgotten how to work with VBA in Excel.
I have tried using the VFP debugger, and can watch my object .zexcel and even a workbook which I have opened by saying :
.zWorkbook = .zExcel.Workbooks.Open(Myfilename)
But the debugger tends to run out of steam. It will tell you that something is an object but will not let you see the properties of that object unless you already know the names of them
Thanks. Andrew M.
I would like to see all the properties that exist for an workbook object and for a worksheet object. Specifically I need to know how many sheets there are in a workbook so that I can open those that exist, but not get a run-time error if I try to read a non-existent work-sheet. I have an idea that this is accessible via VBA but I do not use VBA very often and have forgotten how to work with VBA in Excel.
I have tried using the VFP debugger, and can watch my object .zexcel and even a workbook which I have opened by saying :
.zWorkbook = .zExcel.Workbooks.Open(Myfilename)
But the debugger tends to run out of steam. It will tell you that something is an object but will not let you see the properties of that object unless you already know the names of them
Thanks. Andrew M.