Msg Box Userform

Abhishek1988

New Member
Joined
Oct 22, 2018
Messages
27
Hi Everyone,

Hope all are fine.

I have very basic knowledge about the VBA and looking out for some help.

I have a combo box in excel userform (cmboxabc), which is depend on multiple options buttons and one textbox value.

I want if all options buttons are unchecked and textbox value is blank and user try to see click on combo box to see dropdown value then user would be one error msg that "please select option button and provide text value".

Please help me with the same and also provide me the location where i need to paste required coding.

let me know if you have any further questions.
 
Re: Msg Box Userform Help

Not sure but by this coding i am able control combo box by textvalue. i can easily able to access combo box by clicking on drop down alone. i need both the condition should met text and optionbox both :(

What you could do is start the userform with the combobox Enabled=False. The user can't click on the box until the Enabled property is True.

Use the checkbox and textbox Change events to decide when conditions are right to change the Enabled to True

Code:
cmboxabc.Enabled = (TextBox1.Text <> vbNullString) And (OptionButton1.Value Or OptionButton2.Value Or OptionButton3.Value)
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,223
Messages
6,123,711
Members
449,118
Latest member
MichealRed

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