Multiple IF statement with two True values

  • Hi
    I am writing code for a quote systems with various Userforms. On UF3 I have a few checkbox and then dependent on is checked a few dropdown boxes will appear as visible or not on UF4.
    I need to know how I can display 2 of them that will be True and appear as visible?


    Private Sub UserForm_Initialize()


    If Use_AI = True Then
    UF4_Module_Selection.AI_Combo_Channel.Visible = True
    UF4_Module_Selection.AO_Combo_Channel.Visible = False
    UF4_Module_Selection.DI_Combo_Channel.Visible = False
    UF4_Module_Selection.DO_Combo_Channel.Visible = False
    End If


    'not working
    If Use_AI = True And Use_AO = True


    UF4_Module_Selection.AI_Combo_Channel.Visible = True
    UF4_Module_Selection.AO_Combo_Channel.Visible = True
    UF4_Module_Selection.DI_Combo_Channel.Visible = False
    UF4_Module_Selection.DO_Combo_Channel.Visible = False


    End If

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!