msquared99
Member
Hello, I'm new to VBA.
Here is the situation, I have a UserForm, and in the user form I have several ComboBoxes, CheckBoxes and TextBoxes.
I cannot get the code below to work properly and am asking for a little help.
Here is what I want it to do:
ComboBox = Have & CheckBox = False put "Do Not Contact" in the TextBox OR
ComboBox = None & CheckBox = False put "Contact" in the TextBox
Here is the code I'm trying to use:
Select Case CbxCOBRA.Value
Case "Have", "None" 'The client either has it or not.
CbxCOBRA.Value = "Have"
Case Else
CbxCOBRA.Value = "None"
Select Case cbCOBRA2.Value 'If the CheckBox is unchecked then populate TextBox10
Case False
'This is giving me some issues, I need it to choose between the two below
TextBox10 = resString = resString & Delimiter & "Do Not Contact"
TextBox10 = resString = resString & Delimiter & "Contact"
End Select
End Select
Here is the situation, I have a UserForm, and in the user form I have several ComboBoxes, CheckBoxes and TextBoxes.
I cannot get the code below to work properly and am asking for a little help.
Here is what I want it to do:
ComboBox = Have & CheckBox = False put "Do Not Contact" in the TextBox OR
ComboBox = None & CheckBox = False put "Contact" in the TextBox
Here is the code I'm trying to use:
Select Case CbxCOBRA.Value
Case "Have", "None" 'The client either has it or not.
CbxCOBRA.Value = "Have"
Case Else
CbxCOBRA.Value = "None"
Select Case cbCOBRA2.Value 'If the CheckBox is unchecked then populate TextBox10
Case False
'This is giving me some issues, I need it to choose between the two below
TextBox10 = resString = resString & Delimiter & "Do Not Contact"
TextBox10 = resString = resString & Delimiter & "Contact"
End Select
End Select