hello.
you can loop the textbox controlls like.
Dim oCtrl As MSForms.Control ' Textbox Data Cheek
For Each oCtrl In Me.Controls
If TypeOf oCtrl Is MSForms.TextBox Then MsgBox "The Textbox " & oCtrl.Name & " Needs A valid entry"
Next oCtrl
you could add code to this to skip certian textboxs based on the controll name.
hope this helps
here is the other method that i know to loop the controls
Dim txtArray As Variant
Dim LpArr As Integer
txtArray = Array("Textbox1", "Textbox2", "Textbox3")
For LpArr = LBound(txtArray) To UBound(txtArray)
If Me.Controls(LpArr).Value = "" Then
Select Case LpArr
Case 0
MsgBox "This it the 1st control in array"
Case 1
MsgBox "this is the second control in array"
Case 2
MsgBox "this is the 3rd control in array"
Case Else
MsgBox "This message sould not get seen"
End Select
End If
Next LpArr
Bookmarks