General information
Category:
COM/DCOM and OLE Automation
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only