How To Get Row Number In Excel Vba

To get the row number in Excel VBA, you can use the .Row property. This property returns the row number of a cell or range.

Here’s an example:

<script language="vba">
Sub GetRowNumber()
    Dim rowNumber As Integer
    rowNumber = Range("A1").Row
    MsgBox "The row number of cell A1 is " & rowNumber
End Sub
</script>

Read more interesting post

Leave a comment