>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