Multi-Selection on UserForm

Babynod

Board Regular
Joined
Aug 10, 2022
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hi All

currently working on a UserForm where people can request new accounts for their team members.
i was thinking of using check boxes or option buttons for 3 of the options to say what systems the user needs access to(BLS/ANA production environment and BLS/ANA Test environment)
users don't always need access to both (or sometimes none hence the NO option)so they need to be separate.
1663618833055.png


i currently don't have any code for this part as i haven't been able to find anything that suits.

unless there's a better way to do this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Are you just looking for code to exclude the other two if you select No? What are the check box names? What happens to the data, anything special, or do you have that sorted out?
VBA Code:
Private Sub ckbxProdNo_Change()
If ckbxProdNo.Value = True Then
    ckbxProdBLS.Value = False
    ckbxProdBLS.Enabled = False
    ckbxProdANA.Value = False
    ckbxProdANA.Enabled = False
Else
    ckbxProdBLS.Enabled = True
    ckbxProdANA.Enabled = True
End If
End Sub
Same for test
 
Upvote 0
Are you just looking for code to exclude the other two if you select No? What are the check box names? What happens to the data, anything special, or do you have that sorted out?
VBA Code:
Private Sub ckbxProdNo_Change()
If ckbxProdNo.Value = True Then
    ckbxProdBLS.Value = False
    ckbxProdBLS.Enabled = False
    ckbxProdANA.Value = False
    ckbxProdANA.Enabled = False
Else
    ckbxProdBLS.Enabled = True
    ckbxProdANA.Enabled = True
End If
End Sub
Same for test
i want it to fill out a YES or NO in my table in the below columns.

just realised aswell as its a checkbox i could get rid of the NO box and default it to NO unless the box is checked then it would change it to YES
1663705136499.png
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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