Macro list drop down

J

Joanne

Hello,
I think this is a really silly question but...I have created a form and
within the form I have a text field for which I want to add a macro when a
user enters the field. So I clicked on the drop down to pick the macro and I
noticed that the way macros are listed makes no sense at all. The macros in
normal.dot are for the most part just listed by themselves, i.e. without
mentioning the module they're in. But then one of them is listed as <module
name>.<macro name>. Some of the other listings sometimes include the name of
the template, sometimes not. There seems to be no rhyme or reason to how
macros are listed. Could someone clarifiy this for me?

Thanks very much.
 
J

Jonathan West

Joanne said:
Hello,
I think this is a really silly question but...I have created a form and
within the form I have a text field for which I want to add a macro when a
user enters the field. So I clicked on the drop down to pick the macro
and I
noticed that the way macros are listed makes no sense at all. The macros
in
normal.dot are for the most part just listed by themselves, i.e. without
mentioning the module they're in. But then one of them is listed as
<module
name>.<macro name>. Some of the other listings sometimes include the name
of
the template, sometimes not. There seems to be no rhyme or reason to how
macros are listed. Could someone clarifiy this for me?

Thanks very much.

It's not a silly question at all. The rule for how the routines are listed
in the Macro dialog are as follows.

If the procedure name is unique across all loaded templates, then just the
procedure name is shown.

If there are two or more macros with the same procedure name, then on the
list the procedure name is qualified with the module name. You won't
necessarily notice this immediately, because the macros are listed in
alphabetical order of the whole name as displayed.

If there are two macros that can't be distinguished by the module name and
procedure name, because the names are the same but in different templates,
then the project name and if necessary also the template name are used to
distinguish them.
 
J

Joanne

Thank you so much for clearing this up!

Jonathan West said:
It's not a silly question at all. The rule for how the routines are listed
in the Macro dialog are as follows.

If the procedure name is unique across all loaded templates, then just the
procedure name is shown.

If there are two or more macros with the same procedure name, then on the
list the procedure name is qualified with the module name. You won't
necessarily notice this immediately, because the macros are listed in
alphabetical order of the whole name as displayed.

If there are two macros that can't be distinguished by the module name and
procedure name, because the names are the same but in different templates,
then the project name and if necessary also the template name are used to
distinguish them.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
 

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