M
MarieP
Hello,
I have created a form and would like to include a macro that will check if
two particular fields have been filled in at the time the user exits the
document (as opposed to checking upon exiting the fields). The fields have
the bookmark names "Text1" and "Text2." If neither of the fields are
answered, I would like one of three possible message boxes to appear, each
with a different question, depending on the circumstances: (1) "The field
Text1 has not been addressed. Continue exiting?" or (2) "The field Text2 has
not been addressed. Continue exiting?" or (3) Neither fields Text1 nor Text2
have been addressed. Continue exiting?" I am VERY new to writing VBA macros.
In the last two days I have read the questions and answers addressed in the
MS Community and the "how to's" on many websites, including the ones
recommeded here. I've picked up some knowledge, but apparently not enough. I
know this is a tall order, but if anyone can suggest how to write a macro for
this I would be most appreciative!
I have created a form and would like to include a macro that will check if
two particular fields have been filled in at the time the user exits the
document (as opposed to checking upon exiting the fields). The fields have
the bookmark names "Text1" and "Text2." If neither of the fields are
answered, I would like one of three possible message boxes to appear, each
with a different question, depending on the circumstances: (1) "The field
Text1 has not been addressed. Continue exiting?" or (2) "The field Text2 has
not been addressed. Continue exiting?" or (3) Neither fields Text1 nor Text2
have been addressed. Continue exiting?" I am VERY new to writing VBA macros.
In the last two days I have read the questions and answers addressed in the
MS Community and the "how to's" on many websites, including the ones
recommeded here. I've picked up some knowledge, but apparently not enough. I
know this is a tall order, but if anyone can suggest how to write a macro for
this I would be most appreciative!