Enabling active X Drop down combo box after making selection

Virge

New Member
Joined
Jun 15, 2015
Messages
8
Hi,

I have what should be an easy situation but can't figure it out. I am creating a user form which consist of several comboboxes and I am having a problem with the code below to work two combo boxes in the following way:

When selecting the word NONE on combox1 with the drop button click procedure combobox2 should be disabled upon clicking on the dropdown button of combobox2. This works, the problem is I want the users to continue down the form selecting information from other non related comboboxes, but the entire sheet locks up and the cursor does not move from combobox2 unless I hit esc, which would be a nuisance for the users of the form.

Private Sub ComboBox2_Dropbutt*******()


If ComboBox1.Text = "NONE" Then
ComboBox2.Enabled = False


Else
ComboBox2.Enabled = True


End If




End Sub
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi welcome to forum.

see if this does what you want:

Code:
Private Sub ComboBox1_Change()
Me.ComboBox2.Enabled = Not Me.ComboBox1.Text = "NONE"
End Sub

Dave
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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