Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding out programmatically how many rows in excel.
Message
From
27/01/2003 14:02:45
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00745897
Message ID:
00745912
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform