Rufus Clupea
Board Regular
- Joined
- Feb 11, 2019
- Messages
- 85
Hi Folks,
I've been doing some reading up on the Multiple UserForm Controls with One Event Handler concept, and a few questions have arisen...
Some (most?) of the articles I've read talk about using Long variables vs. Boolean to hold the value of OptionButtons & CheckBoxes. The Long value of a selected OptionButton/CheckBox = 1 (makes sense) but they seem to like using -4146 for the un-selected value, mentioning 0 as an "also" possibility.
My questions are:
TIA
I've been doing some reading up on the Multiple UserForm Controls with One Event Handler concept, and a few questions have arisen...
Some (most?) of the articles I've read talk about using Long variables vs. Boolean to hold the value of OptionButtons & CheckBoxes. The Long value of a selected OptionButton/CheckBox = 1 (makes sense) but they seem to like using -4146 for the un-selected value, mentioning 0 as an "also" possibility.
My questions are:
- What would be the advantage (if any) in using Long vs. Boolean, and
- Why -4146? (I'm thinking there's some interesting (hi)story behind this.)
- Can I use the same Event Handler (EH) for several groups (Frames) of OptionButtons, or do I need to write different/separate EHs for each Frame of OptionButtons?
TIA