Excel Tutorial
20120728
UsedRange method to find number of used rows in a worksheet
Sub UsedRows_UsedRange()
Dim usedRows As Long
usedRows = ActiveSheet.UsedRange.Rows.Count
MsgBox usedRows
End Sub
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment