Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find out names of sheets in Xls document
Message
De
23/08/1999 09:08:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00256512
Message ID:
00256531
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform