I maintain a large spreadsheet and there are ActiveX command buttons throughout the code. One sheet has almost 100 of these. I made sure the button is visible as some of the buttons are hidden/unhidden depending on the flow of the code.
Is there a way I can find where on the sheet the button is located that the VBA code is pointing to? Here is a snippet:
Private Sub CommandButton4_Click()
Application.Goto Range("Add_Trainees"), True
CommandButton3.Visible = True ' unhides menu button
CommandButton81.Visible = True ' hides SC1
CommandButton97.Visible = True ' hides SC2
End Sub
I am trying to find where on the sheet command buttons 3, 81 and 97 are located.