Re: Macro list drop down




"Joanne" <Joanne@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CAC8E0DA-8E90-44EE-AA12-5324EC342F16@xxxxxxxxxxxxxxxx
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.


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

.



Relevant Pages

  • Re: Templates and Macros
    ... including AutoText, AutoCorrect, keyboard assignments, toolbars, macros, ... Here is some general info on moving from Word Perfect to Word: ... As for converting documents from Word Perfect to _use_ in Word... ... this new document as a Word template. ...
    (microsoft.public.word.docmanagement)
  • Re: Understanding Macros
    ... I'm assuming you put the VBA macro code into your forms template. ... Choose an appropriate name for the toolbar ... list, find Macros. ... Okay, I deleted the "Option Explicit" line, ran again. ...
    (microsoft.public.word.docmanagement)
  • Re: Understanding Macros
    ... followed all of your responses and my spell check is working in my template. ... Choose an appropriate name for the toolbar ... list, find Macros. ... OK, for the moment, just delete the line that says "Option Explicit". ...
    (microsoft.public.word.docmanagement)
  • Re: Understanding Macros
    ... Did the template that I sent you not work? ... Greg Maxey/Word MVP ... toolbar in your template. ... Categories list, find Macros. ...
    (microsoft.public.word.docmanagement)
  • Re: Templates and Macros
    ... including AutoText, AutoCorrect, keyboard assignments, toolbars, macros, ... Here is some general info on moving from Word Perfect to Word: ... As for converting documents from Word Perfect to _use_ in Word... ... To use a template within Word, use File => New and pick your template. ...
    (microsoft.public.word.docmanagement)