gregonometry
New Member
- Joined
- May 25, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hello All,
long time user, first time poster!
I would like to have several shapes(buttons) assigned with the same macro (this macro activates a userform). When i click a given shape(button) with a macro assigned i would like to assign a number to a worksheet cell based on which shape(button) i click.
For example.
Shape(button) names:
btn1
btn2
When i click the shape(button) btn1 i would like the action to run the assigned macro and simultaneously assign a 1 to Sheet2.Range("A1"). Similarly, when i click shape(button) btn2 i would like the action to run the assigned macro and simultaneously assign a 2 to Sheet2.Range("A1"); overwriting the previous value.
Any help would be much appreciated!
long time user, first time poster!
I would like to have several shapes(buttons) assigned with the same macro (this macro activates a userform). When i click a given shape(button) with a macro assigned i would like to assign a number to a worksheet cell based on which shape(button) i click.
For example.
Shape(button) names:
btn1
btn2
When i click the shape(button) btn1 i would like the action to run the assigned macro and simultaneously assign a 1 to Sheet2.Range("A1"). Similarly, when i click shape(button) btn2 i would like the action to run the assigned macro and simultaneously assign a 2 to Sheet2.Range("A1"); overwriting the previous value.
Any help would be much appreciated!