I assign the same macro to all my ToggleButtons, and use Application.Caller to determine which button was clicked.
I also do the same thing for CheckBoxes, but using this codePlease Login or Register to view this content.
I would like to do the same thing for OptionButtons, but I can't figure out what to put here:Please Login or Register to view this content.
"s" has the name of the OptionButon in it, but I can't get it into an object.Please Login or Register to view this content.
"OptionButtons(s)" doesn't work and neither does "Shapes(s)".
How can I get the OptionButton object?
I know that I could probably cycle through all the shapes on the worksheet looking for the one with that name, but I would rather go directly.
Bookmarks