Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

How do I compare text entered in form fields (not mailmerge)?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 29 Jun 2007 00:58 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.