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 13:54:11
 
 
To
27/01/2003 13:52:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00745897
Message ID:
00745906
Views:
17
>>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
>
>Try this:
>
	cur_colm = oExcel.ActiveCell.Column
>    lastcell = oExcel.Cells(65536, cur_colm).End(xlUp).Address
>
>HTH,


Whoops! Forgot:
with oExcel.ActiveSheet
    cur_colm = oExcel.ActiveCell.Column
    lastcell = oExcel.Cells(65536, cur_colm).End(xlUp).Address
endwith
Winn Pauley
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform