Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding out programmatically how many rows in excel.
Message
De
27/01/2003 14:02:45
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00745897
Message ID:
00745912
Vues:
23
Hi Julie,

Is there something in the spreadsheet that signifies "EOF"? For instance if the Column A of the sheet contains information in every row, scan throught the sheet to find an empty value in Column A. Below is an example of skipping over empty cells, you want to do the reverse.

lcSymbol = .Cells(lnRow, lnSymbolCol).VALUE

DO WHILE TYPE( 'lcSymbol' ) <> 'C' && skip over the empty cells
lnRow = lnRow + 1
lcSymbol = .Cells(lnRow, lnSymbolCol).VALUE
ENDDO

HTH,

Jacci

>I am programmatically saving an excel file to dbf format. I do not know how many rows will be in the spreadsheet does anyone know how I can figure this out?
>
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform