Combobox Issue

Burger01

New Member
Joined
May 29, 2002
Messages
49
I have this code as a part of a combobox:

Private Sub ComboBox4_change()
If ComboBox4.Value = "Up to 40 Years" Then
ComboBox3.Enabled = False
ComboBox3.Value = "N/A- Building is less than 40 years"
Label4.Enabled = False
Label18.Enabled = False
Else
ComboBox3.Enabled = True
Label4.Enabled = True
Label18.Enabled = True
End If
End Sub

WHat happens is that when "Up to 40 Years" is selected, it does what it is supposed to do by disabling combob 3 etc. But, it also loses the value selected, being "up to 40 years". Anyone know why it does this? ...and how I get around it?

Burger
This message was edited by Burger01 on 2002-09-03 16:58
 
Haven't exactly solved the problem, but I have used combobox4_afterupdate() and it seems to hold the value. Only problem is that to move to the next combo, I have to tab twice. Oh well, users will have to get use to it. I have had enough of trying to figure it out for now.

Thanks to those who helped. Pity we couldn't figure the actual problem out.

BURGER
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,214,559
Messages
6,120,194
Members
448,951
Latest member
jennlynn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top