Exit Macro | Dot Templates

G

Guest

Hi all,
I have a Dot template with some form fileds and table's in the template,
both Form Fields and Tables are all in diffrent sections.
The form filed sections is protected but the tables sections is unprotected.
The formfields are mandatory and i have assinged an ExitMacro to each form
filed. Now the Exit macro are not getting executed when the focus(Using
Mouse) is taken away from a form field( in protected section ) to a table row
in the unprotected section.
else the exit macro are executed and are working fine when the focus is
taken off from one form fiels to another using mouse.(in same Protected
section).

I have attached the Macro Below

Sub ExitMacroforTitle()
With ActiveDocument
If (.FormFields("Title").Result = "" Or
LenTrim.FormFields"Title").Result)) = 0)
Then
MsgBox ("Title is Mandatory")
.FormFields("Title").Result = "Please enter Title here"
End If
End With
End Sub

Is there any method by which the macro can be executed and i get the msgbox
if no data is entered in the formfiled.

Any help will be of great use.Thanks In Advance
Arthi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top