I have a button (form control, not ActiveX). I renamed this button "butVA03". I also have 15 other buttons in my excel sheet, but I want a test to check if "butVA03" was the button that I clicked.
Is this possible? My suspicion is that I'm not defining "butVA03" correctly as a specific button, but I can't figure out how to do this. Thanks in advance.
Is this possible? My suspicion is that I'm not defining "butVA03" correctly as a specific button, but I can't figure out how to do this. Thanks in advance.
Code:
Public Sub AllButtons()
If butVA03 = True Then
MsgBox ("True")
Else
MsgBox ("False")
End If
End Sub
Last edited: