M
Mark Wilkins
Hi,
Is there a way of knowing what CommandButton has been
clicked on within a method ? I would like to write a
generic method to process the text on a CommandButton such
as:
Private Sub CommandButton1_Click()
'Display Command Button Text
MsgBox("The button you clicked on
was: "+theCommandButton.Caption
End Sub
There does not seem to be any keywords such as "this"
or "sender" etc.
Thanks
Mark
Is there a way of knowing what CommandButton has been
clicked on within a method ? I would like to write a
generic method to process the text on a CommandButton such
as:
Private Sub CommandButton1_Click()
'Display Command Button Text
MsgBox("The button you clicked on
was: "+theCommandButton.Caption
End Sub
There does not seem to be any keywords such as "this"
or "sender" etc.
Thanks
Mark