![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2004
Posts: 10
Rep Power: 0
![]() |
I have a combobox with "Option1" and "Option2"
When Option1 is clicked, option1 is enabled and option2 is disabled, and when Option 2 is clicked, it is enabled and Options1 is disabled. The problem is that it only works for the first time. When you click the opposite option the second time, nothing happens. How do I get it to constantly check what choice.text is? Sub choice_Click() If choice.Text = "Option 1" Then option1.Enabled = True option2.Enabled = False ElseIf choice.Text = "Option 2" Then option1.Enabled = False option2.Enabled = True End If End Sub |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Try using Sub choice1_Change().
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
Yeah _Change() will work for you.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#4 | |
|
Newbie
Join Date: Nov 2004
Posts: 10
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Nov 2004
Posts: 10
Rep Power: 0
![]() |
I have no idea why, but now it works with choice_Click and not with choice_Change. Oh well, at least it does what I want it to do.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|