G
Guest
I'm trying to write code to create a Function that will, depending on the
Command Button pressed on a form, take the name label (caption) of the button
and assign the text to a string that I can then do something with.
I know how to do this on an individual button basis as a private sub, but I
have a need to do this with several buttons on a form and I don't want to
have to copy the code and edit it for each button.
Any assistance would be appreciated.
Command Button pressed on a form, take the name label (caption) of the button
and assign the text to a string that I can then do something with.
I know how to do this on an individual button basis as a private sub, but I
have a need to do this with several buttons on a form and I don't want to
have to copy the code and edit it for each button.
Any assistance would be appreciated.