I'm not sure how to ask this question and I'm relatively new to the community.
I am trying to get the position of a button, which I have the code for, and it works.
How can I call the Sub below from another Sub and get the integer value of the row position?
Sub ButtonRow()
     ' Mainlineup Macro
    Dim b As Object, RowNumber As Integer
    Set b = ActiveSheet.Buttons(Application.Caller)
    With b.TopLeftCell
        RowNumber = .Row
    End With
    'MsgBox "Row Number " & RowNumber
End Sub
 
     
    