Thinking it might be past Jay's bedtime I will step in. Something like this
maybe:
lblDescriptive is the name of the descriptive label placed near the textbox.
Private Sub UserForm_Initialize()
With Me.lblDescriptive
.Visible = False
.Caption = ""
.ForeColor = &H80000012
End With
End Sub
'Show the decriptive label on entry to the text field.
Private Sub TextBox1_Enter()
With Me.lblDescriptive
.Visible = True
.Caption = "Enter your name in this format: ""First name, CtrlTab twice,
your Middle Initial, CtrlTab once, Last Name"""
.ForeColor = wdColorBlue
End With
End Sub
'Validate the entry on exit
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
With Me.TextBox1
If Not .Text Like "[A-Z]*" & vbTab & vbTab & "[A-Z]" & vbTab & "[A-Z]*" Then
Cancel = True
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
With Me.lblDescriptive
.Caption = "Wrong format!! Enter your name in this format: ""First
name, CtrlTab twice, your Middle Initial, CtrlTab once, Last Name"""
.ForeColor = wdColorRed
End With
End If
End With
End Sub
'Restore label when user begins correction.
Private Sub TextBox1_Change()
With Me.lblDescriptive
.Visible = True
.Caption = "Enter your name in this format: ""First name, CtrlTab twice,
your Middle Initial, CtrlTab once, Last Name"""
.ForeColor = wdColorBlue
End With
End Sub
--
Greg Maxey - Word MVP
My web site
http://gregmaxey.mvps.org
McCain/Palin '08 !!!