TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
A programmer I work with is having a tough time with a Word 95 macro.
Below is his email explaining the problem. If anyone can give him
advice about the problem or where he can find the answer, we would
jboskey -at- wheels -dot- com
______________________________ Forward Header __________________________________
Subject: Word macro question HELP!
Author: Mike Gorgone at whq-mis
Date: 6/22/99 1:20 PM
I am currently trying to create a macro to validate data entries on a
form. I want the macro to run when the user tries to save the form.
If all the required fields have data, I want the save to continue.
If a required field does not have data, then I want the save to abort
and the focus of the program to jump to the empty field.
I currently have the macro working and I named it AutoClose to run
when the program shuts down. However there are two problems.
1) The user can select the save button and still save the form with
the incorrect data.
2) If the user tries to exit word or close the document the macro
fires. The macro notifies the user there are empty fields the user
then gets the message to either save, not save or cancel the save
I want the macro to fire during a save not when the program closes
down or when the document is closed. Is there any way to do this?
Any help would be appreciated, replies can be posted here or sent to