checkbox combobox userform vba

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
672
Office Version
  1. 365
Platform
  1. Windows
hi
i have a userform that i am trying to make even easier
i would like that if opt is selected and checkbox is true the populate my actions combobox
see below in red what i am trying to do

Rich (BB code):
Private Sub CmdEnter_Click()

    Worksheets("Log").Select
        Range("A4").Select
        
    If ActiveCell.Value = "" Then
       ActiveCell.Select
    Else
       Selection.End(xlDown).Offset(1, 0).Select
     End If
     
     If Me.CboParticipants.Value = "" Then
        Me.lblParticipantsName.ForeColor = vbRed
        Me.CboParticipants.SetFocus
     Exit Sub
     End If
     
     If Me.CboActions.Value = "" Then
        Me.lblActionProvided.ForeColor = vbRed
        Me.CboActions.SetFocus
     Exit Sub
     End If
      
        ActiveCell.Value = Me.CboParticipants
        ActiveCell.Offset(0, 1).Value = Me.txtDateToday
        ActiveCell.Offset(0, 2).Value = Me.CboActions
     If Me.optBudget.Value = True Then
        ActiveCell.Offset(0, 3).Value = "Budget"
     End If
     If Me.UploadedBudget = True Then
       ActiveCell.Offset(0, 4).Value = ChrW(&H2713)
also fill actions combo with "Budget Uploaded" this way the user doesnt have to also select dropdown of action provided
     End If
     If Me.optDDP1.Value = True Then
        ActiveCell.Offset(0, 5).Value = "DDP1"
     End If
     If Me.Approved = True Then
        ActiveCell.Offset(0, 6).Value = ChrW(&H2713)
    End If
         Call Clear_Click
         Me.lblActionProvided.ForeColor = vbBlack
         Me.lblParticipantsName.ForeColor = vbBlack
         
         Call cmdClose_Click
   End Sub
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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