There are many questions like mine and I just tried out the solution mentioned in many places, for example here. But for me it just returns the error "Run-time error '1004': Unable to get the Buttons property of the worksheet class" when I enter the following code:
Sub Mainscoresheet()
' Mainlineup Macro
Dim b As Object, RowNumber As Integer
Set b = ActiveSheet.Buttons(Application.Caller) 'here I get the error
With b.TopLeftCell
RowNumber = .Row
End With
MsgBox "Row Number " & RowNumber
End Sub
Does anyone know another solution which would fix my problem? If you need any further information, please feel free to ask. Thanks in advance!
Kind regards, Julia