Hello, I was wondering if there is a maximum number of OR operators I can use in one IF statement.
Well, I have a userform with alot of textboxes where the user can input.Could you please describe what you are needing to do?
Dim cCont As Control
For Each cCont In UserMenu.Controls
If TypeName(cCont) = "TextBox" Then
With cCont
If Trim$(.Text) = vbNullString Then
MsgBox "All fields must be filled in", vbCritical
Exit Sub
End If
End With
End If
Next cCont
UserMenu.Hide
Application.Wait 10000
Load MainMenu
MainMenu.Show