P
PMBO
I have the macro shown below attached to the ENTRY of a text form field. it
does what I want it to do, except if the user clicks OK on the message box
and doesn't fill in the field then presses the TAB key, they just move onto
the next field. How can I make it stay on the field until they fill it in?
Thanks,
Sub Premium1()
'
' Fillin Macro
' Macro recorded 4/17/2008 by Paula
'
If ActiveDocument.FormFields("Premium").Result = "" Then
MsgBox "You must fill in PREMIUM field"
Selection.GoTo What:=wdGoToBookmark, Name:="Premium"
End If
End Sub
does what I want it to do, except if the user clicks OK on the message box
and doesn't fill in the field then presses the TAB key, they just move onto
the next field. How can I make it stay on the field until they fill it in?
Thanks,
Sub Premium1()
'
' Fillin Macro
' Macro recorded 4/17/2008 by Paula
'
If ActiveDocument.FormFields("Premium").Result = "" Then
MsgBox "You must fill in PREMIUM field"
Selection.GoTo What:=wdGoToBookmark, Name:="Premium"
End If
End Sub