Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find out names of sheets in Xls document
Message
From
23/08/1999 09:08:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/08/1999 08:13:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00256512
Message ID:
00256531
Views:
23
>Hello,
>When Importing an XLS spreadsheet with the Import Wizard, you can select the sheet you want to import from. How can I implement this feature into my program, so that the user can see a list with the available sheetnames for the document which he selected?
>Thanks in advance for your help.
lparameters tcXLSFile
oExcel = createobject("excel.application")
with oExcel
 .workbooks.open(tcXLSFile)
 with .ActiveWorkBook
   dimension myArray[.Sheets.count]
   for ix = 1 to .Sheets.count
 	myArray[ix] = .Sheets(ix).name 
   endfor
 endwith
 .quit
endwith
display memo like myArray
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
Reply
Map
View

Click here to load this message in the networking platform