Hello Steach91,
Part of your problem is you are using the wrong object class. The Buttons class is not the right one to use. There are 2 types of controls that can be placed on a worksheet: Forms Controls, and Control Toolbox Controls, also known as ActiveX. Here is the code for both.
Public Sub ButtonRow()
'Forms Controls Macro
Btn = Application.Caller
Row = ActiveSheet.Shapes(Btn).TopLeftCell.Row
End Sub
Private Sub CommandButton1_Click()
'Control Toolbox Macro Code
Set CmdBtn = ActiveSheet.OLEObjects("CommandButton1")
Row = CmdBtn.TopLeftCell.Row
End Sub
Sincerely,
Leith Ross
Bookmarks