RAYLWARD102
Well-known Member
- Joined
- May 27, 2010
- Messages
- 529
How can I find out what commandbutton was just pressed in my userform.
example: msgbox commandbutton.caption
I know the above wont work but its what I want; just don't know how to get it. I do not want want to refer to the number of the button that was just pressed...example: msgbox commandbutton1.caption
example: msgbox commandbutton.caption
I know the above wont work but its what I want; just don't know how to get it. I do not want want to refer to the number of the button that was just pressed...example: msgbox commandbutton1.caption