Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Excel worksheets
Message
From
23/03/2004 11:07:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/03/2004 10:54:11
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00888885
Message ID:
00888892
Views:
10
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform