Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Excel worksheets
Message
De
23/03/2004 11:13:28
 
 
À
23/03/2004 11:07:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00888885
Message ID:
00888893
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform