Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I created a Userform with several checkboxes and comboboxes. Once all the
information is filled out, i hit the run button. I'm getting an error because it's not reading if the checkbox is marked or not, it's always read as unmarked. What is the correct way of coding this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To get started try:
http://support.microsoft.com/kb/213749/ OR http://www.contextures.com/xlUserForm01.html |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Checkbox has a boolean value and VBA gives you three choices for Yes, On or
True and three choices for No, Off or False. So if you want to check if it is checked then: If Me.CheckBox1 = True Then MsgBox "Checked" Else MsgBox "Not Checked" End If "Carol" wrote: I created a Userform with several checkboxes and comboboxes. Once all the information is filled out, i hit the run button. I'm getting an error because it's not reading if the checkbox is marked or not, it's always read as unmarked. What is the correct way of coding this? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It's the simplest things that get to you. I figured out my mistake. Thank
you for your help! "JLGWhiz" wrote: Checkbox has a boolean value and VBA gives you three choices for Yes, On or True and three choices for No, Off or False. So if you want to check if it is checked then: If Me.CheckBox1 = True Then MsgBox "Checked" Else MsgBox "Not Checked" End If "Carol" wrote: I created a Userform with several checkboxes and comboboxes. Once all the information is filled out, i hit the run button. I'm getting an error because it's not reading if the checkbox is marked or not, it's always read as unmarked. What is the correct way of coding this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
link a checkbox in a sheet to a checkbox on a userform? | Excel Programming | |||
How do I link one checkbox to update another checkbox? | Excel Programming | |||
checkbox on form reset from checkbox on sheet | Excel Programming | |||
Checkbox | Excel Programming |