I am just learning VBA excel. I am writing a code to count number of rows with data from specific cell say B5
the code as follows.
Sub Count_Rows()
Dim No_Of_Rows As Integer
No_Of_Rows = Range("B5").End(xlDown).Rows.Count
MsgBox No_Of_Rows
End Sub
the above code always returns the value 1.