I have a MS Word form (not mail merge) that has a number of fileds on it. I
want to produce error messages (MsgBox) whenever users enter incorrect data.
For example, there is a field for Owner and Manager on my form. Users
frequently enter the same name in these fields and that is not allowed. I
want a function or macro to compare the text in the two fields and if they
are equal, produce an error message.
How do I do this?
I've searched high and low and found nothing to help with this.
Thanks,
Tim
Jay Freedman - 29 Jun 2007 03:02 GMT
You can write a macro similar to what's shown in
http://www.word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
>I have a MS Word form (not mail merge) that has a number of fileds on it. I
>want to produce error messages (MsgBox) whenever users enter incorrect data.
[quoted text clipped - 9 lines]
>Thanks,
>Tim