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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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