Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Excel worksheets
Message
From
23/03/2004 11:13:28
 
 
To
23/03/2004 11:07:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00888885
Message ID:
00888893
Views:
10
Thanks Cetin I'll give that a whirl

Nick Mason
>>Hi
>>
>>How would I return a list of worksheets from an excel spreadsheet.
>>
>>Thanks
>>
>>Nick Mason
>
>
>lcFileName = GetFile('xls')
>oExcel = createobject('Excel.Application')
>oExcel.Workbooks.Open(m.lcFileName)
>with oExcel.ActiveWorkbook
>  dimension aSheets[.Sheets.Count]
>  for ix=1 to .Sheets.Count
>    aSheets[m.ix] = .Sheets(m.ix).Name
>  endfor
>endwith
>oExcel.quit
>disp memo like aSheets
>
Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform