Disarmonious
Board Regular
- Joined
- Oct 31, 2016
- Messages
- 151
- Office Version
- 365
Before I begin, I am a VBA beginner. I ask for your patience. Thank you, in advance!
I created an icon and assigned a macro that when selected, the word, "Yes" appears on cell B2.
Now, I'm looking for the word "No" to appear in the same cell, B2 when this icon is selected again. So, essentially, this icon would act as a "switch" by telling cell B2 to return the words "Yes" and "No" when the user selects it.
Here's my VBA code:
Sub Image1_Click()
ActiveSheet.Range("B2").Value = "Yes"
End Sub
I created an icon and assigned a macro that when selected, the word, "Yes" appears on cell B2.
Now, I'm looking for the word "No" to appear in the same cell, B2 when this icon is selected again. So, essentially, this icon would act as a "switch" by telling cell B2 to return the words "Yes" and "No" when the user selects it.
Here's my VBA code:
Sub Image1_Click()
ActiveSheet.Range("B2").Value = "Yes"
End Sub