Message 1 of 8
Option Buttons Settings

Not applicable
10-13-2005
09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code in my userform_activate which sets the correct option button
based upon the value of chkAutoCapFlag:
' This section only here because I don't know what's causing the problem...
chkNoCaseChange.Value = False
chkAutoCap.Value = False
chkUPRCASE.Value = False
'End section
Select Case chkAutoCapFlag
Case 0
chkNoCaseChange.Value = True
Case 1
chkAutoCap.Value = True
Case 2
chkUPRCASE.Value = True
End Select
If the chkAutoCapFlag = 2, when the form loads the chkUPRCASE button is checked, but the
chkAutoCap button is checked but disabled.
It appears correct when chkAutoCapFlag is either 0 or 1 though.
All these controls are set to FALSE in the design view. Setting them all to false before
setting the appropriate one to true in code doesn''t seem to work either.
Any ideas?
based upon the value of chkAutoCapFlag:
' This section only here because I don't know what's causing the problem...
chkNoCaseChange.Value = False
chkAutoCap.Value = False
chkUPRCASE.Value = False
'End section
Select Case chkAutoCapFlag
Case 0
chkNoCaseChange.Value = True
Case 1
chkAutoCap.Value = True
Case 2
chkUPRCASE.Value = True
End Select
If the chkAutoCapFlag = 2, when the form loads the chkUPRCASE button is checked, but the
chkAutoCap button is checked but disabled.
It appears correct when chkAutoCapFlag is either 0 or 1 though.
All these controls are set to FALSE in the design view. Setting them all to false before
setting the appropriate one to true in code doesn''t seem to work either.
Any ideas?