I am using the following code on my text box in my user form.
How can I edit the if statement to say if cbo.cat ="2-Capital....." and cboLoc. does not equal "405....." or "406..." or "409..." and txt.sys = "00" Then
Thank you.
Rich (BB code):
Private Sub txtSYS_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim ws As Worksheet
Set ws = Worksheets("Request Form")
With Me.txtSYS
Trim(cboCat.Value) = "2-Capital Replacement" And Trim(cboLoc.Value) <> "405 - HEADQUARTERS" And Trim(txtSYS.Value) = "00" Then
How can I edit the if statement to say if cbo.cat ="2-Capital....." and cboLoc. does not equal "405....." or "406..." or "409..." and txt.sys = "00" Then
Thank you.