th said:
Thanks Jean,
But is there any easy way out. That is I created a Template using the Form
Not really.
Toolbar, I create TextBoxes to collect the First name, Surname, Email Addr
and go to the properties for each of those Text Form field and give them
Bookmark as FName, LName and EmailAddr. Can I create a simple macro and tag
it on each Textbox to Run Macro on Exit. How should be the VB code be like?
As I wrote before, you could have an OnExit macro attached to all formfields
that would check if the required formfields have been filled in. The problem
with this is that you will end up annoying users pointing out to them that
some fields are required and that that they are not filled in when the user
didn't even have the chance to fill them in yet. For the macro to be able to
tell if a user has been to a field, but failed to fill it out, you also need
an OnEntry macro for those fields setting a flag that the OnExit macro will
then use.
The easiest way is a userform to collect the necessary information and then
inject it in the appropriate formfields in the document. The userform could
kick in as soon as the document is created. It is much easier to perform
input validation in a userform then with formfields.
This is why I gave you the link in my previous post.