Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lines in a spreadsheet?
Message
 
To
11/08/2002 14:29:26
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00688432
Message ID:
00688498
Views:
20
>Can anyone tell me the property (if it exists) for the number of the last occupied line/row in a spreadsheet. I am thinking of something like oSheet.numberoflines, where oSheet is an object reference to the active sheet.

Take a look on UsedRange property of WorkSheet. I think, you can get the number of the last occupied row as
oSheet.UsedRange.Row + oSheet.UsedRange.Rows.Count - 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform