S
sarndt
In a Userform, I have multiple command buttons. For example:
D1_Click
D2_Click
Depending on another event that occurs, I want to calculate in code the
button name that I will be triggering the click event and then trigger the
event.
For example Application.Run "D" & i & "_Click"
with i being the value of 1 or 2.
Application.Run doesn't appear to work in the Userform.
Thanks
Steve
D1_Click
D2_Click
Depending on another event that occurs, I want to calculate in code the
button name that I will be triggering the click event and then trigger the
event.
For example Application.Run "D" & i & "_Click"
with i being the value of 1 or 2.
Application.Run doesn't appear to work in the Userform.
Thanks
Steve