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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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