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

Comments

Popular posts from this blog

50 Excel VBA Oral Interview Questions