Help on vba code to open user form msg box(check box) from combo box

aman2059

Board Regular
Joined
Jan 17, 2016
Messages
75
Hi All,

I am working on vba code and not able to get out of one problem. Below is my problem.

I have created two user form 1) Combo box 2) Check box(I have created 3 check box based on combo box values)

Now, I need that I run macro and it gives me first combo box and when I select value from combo box, it gives me a check box according to the value selected in combo box

NOTE: Combo box has three different values

I tried to do above but couldn't find the solution. Please help.

Please let me know if I need to give more information.

Thank you in advance for help.
 

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.
I am giving one more try, if someone can help. Below is the code to open combo box.

Note: process box is a name of user form combo box.


Code:
Sub processbox1()

 processbox.Show

End Sub



below is the code from Userform box(combo box)

Code:
Private Sub btnCancel_Click()

End Sub

Private Sub d_Change()

End Sub

Private Sub ComboBox1_Change()

 
End Sub

Private Sub CommandButton1_Click()

[B]If ComboBox1_Change = IIL Then

Call regionsbox

elseif ComboBox1_Change = AIL Then

Call module6

End If[/B]

End Sub

Private Sub Label1_Click()

End Sub

Private Sub UserForm_Click()

End Sub

In the above code I tried to add "call" (in command button) to call another macro which has another user form box(combo box) in the code. Below is the code to open another box

Code:
Sub regionsbox()
 
 regionsselection.Show
 
End Sub

:confused: Please let me know if someone can help.
 
Upvote 0

Forum statistics

Threads
1,222,752
Messages
6,168,007
Members
452,160
Latest member
Bekerinik

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