Ok I think I finally got it. The right side of the statement contains the optionbutton number.
It turns out I have 17 option buttons on each of 5 sheets. The sheet I debugged first had the the two option buttons of interest named 1 and 2. All other 4 sheets had the two option buttons of interest named 17 and 18. I copied and pasted all buttons from the first sheet apparently and copied the two buttons of interest last. So, the code for the other 4 sheets had to be as follows:
Only after discovering the "Selection Pane" under the "Home" tab and the "Find & Select" on the ribbon did it all start to make sense. Prior to that I had no idea what the names of the optionbuttons were.
Selecting the option buttons in Design mode (i.e. in order to link them to the cells) was a real pain until I got used to using the selection pane. Just setting the "Select Objects" under "Find & Select" on the ribbon and clicking on the option button caused a lot of frustration. I couldn't deselect them once they were selected by clicking on them.
Bookmarks