Hi,
Is there a way to have a list of the sheet-names that are present in an excel-file?
Thanks
List of sheets in a excel-file
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
List of sheets in a excel-file
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Re: List of sheets in a excel-file
You can try something like this:
FOR nI := 1 TO oExcel:sheets():Count
do_whatever_you_want( oExcel:Worksheets( nI ):name )
NEXT
FOR nI := 1 TO oExcel:sheets():Count
do_whatever_you_want( oExcel:Worksheets( nI ):name )
NEXT
Regards,
André Dutheil
FWH 13.04 HB 3.2 BCC 5.82 MinGW 4.5.2 MSVS 10
André Dutheil
FWH 13.04 HB 3.2 BCC 5.82 MinGW 4.5.2 MSVS 10
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: List of sheets in a excel-file
Thank you André.
It's working fine
It's working fine
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite