Hello, I’m after some help. I have made a vba user form which is working ok. I want to add some data validation to it. I have managed to add a little. Example would be Me.textbox1.Value = “” Then
MsgBox "Please enter date", vbCritical
Exit Sub
End If
This works fine for most boxes the issue I have is that not all my textboxes need an entry, some will if others have one. So an example. If textbox 2 had an entry, then one of 3 and 4 would need an entry and so would 5. If textbox 2 had one then 6, 7, 8 and 9 would not. If textbox 6 had an entry then one of 7 and 8 would need one, so would 9. If textbox 6 had one then I would need no entry in 2, 3, 4 and 5.
This is well beyond me I hope someone can help
MsgBox "Please enter date", vbCritical
Exit Sub
End If
This works fine for most boxes the issue I have is that not all my textboxes need an entry, some will if others have one. So an example. If textbox 2 had an entry, then one of 3 and 4 would need an entry and so would 5. If textbox 2 had one then 6, 7, 8 and 9 would not. If textbox 6 had an entry then one of 7 and 8 would need one, so would 9. If textbox 6 had one then I would need no entry in 2, 3, 4 and 5.
This is well beyond me I hope someone can help