Results 1 to 6 of 6
  1. #1
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Alt+F8 doesn't show macro (English/Word 2000/SR-3)

    Attached are two templates, dot1.dot & dot3.dot. Each has a macro named "Message" which shows a message box with the template name. If you either open the template or create a new document based on the template, Dot3.dot appears normal...you can press Alt+F8 & see the macro listed. You can also see it under Tools/Customize/Commands tab/& scroll to Macros.

    In dot1.dot, you cannot see the macro either way, although you can see & run it from the VBE. Does anyone have an explanation for this?

    This happened because I was testing how the same named macro & shortcut keys work if assigned to various templates (global, add-ins, attached, normal). I kept assigning the same named macro in different templates to the same keyboard shortcut. I was comparing what Woody said in WOW-MM #4.08 and what I had read at http://www.microsoft.com/office/ork/039/039.htm#dex26.

    Woody said that as the templates loaded, the last one would override the previous shortcut key assignments whereas the Microsoft article said the opposite (if I read it correctly). Woody was right! <img src=/S/wink.gif border=0 alt=wink width=15 height=15> It seems that if you assign the same keyboard shortcut to global templates, they displace each other...or at least that's what I observed. i.e. a subsequent assignment actually removes the assignment from other global templates.

    Anyhow, if anyone has some insight, I'd appreciate it.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Alt+F8 doesn't show macro (English/Word 2000/SR-3)

    Phil,

    I guess it is some kind of temporary glitch. The moment you change anything whatsoever in the module in Dot1.dot (type a space, create another macro, compile the code, ...), the Message macro becomes available in the list of macros.

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Alt+F8 doesn't show macro (English/Word 2000/SR-3)

    Hi Hans:
    Well, I'll be... So it does.

    I've "discovered" more gliches. If I load 3 templates dot1.dot, dot2.dot, dot3.dot & all have the same project, module, & macro name, the one closest to the document (highest up on the list of Tools/Templates & add-ins) runs. However, IF I unload dot1 & dot2, assign a keyboard shortcut to dot3, the dot3.dot macro will run. As soon as I load dot1, the keyboard shortcut will run the macro in dot1.dot. Yet if all 3 are loaded via the startup folder, dot3.dot controls. Does that make any sense?

    I wonder if I should write Woody about this. My head is starting to swim.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Alt+F8 doesn't show macro (English/Word 2000/SR-3)

    I think the behavior you describe is not unreasonable. If you put dot1, dot2 and dot3 in the Startup folder, they are probably loaded in that order, so dot3 is the one loaded most recently. If you unload dot1 and dot2, then load dot1 again, dot1 is the one loaded most recently. In all cases, the macro in the most recently loaded template is executed.

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Alt+F8 doesn't show macro (English/Word 2000/SR-3)

    Thanks, Hans. But I tried again. After checking each template individually & exiting Word, I put all 3 templates in the startup folder & started Word. This time, my shortcut key operated dot1.dot, contrary to Woody's article & what happened to me yesterday.

    Then I put all 3 in my templates folder, loaded them as add-ins in the order of dot3, dot1, dot2, testing in between. When I loaded dot3.dot, it worked. When I then loaded dot1.dot, dot1 macro & shortcut key ran. However, when I loaded dot2.dot, the dot1.dot macro & shortcut key continued to be used. This is the way the Microsoft article says it should be, but it doesn't always work. Perhaps it gets confused when I change one template while all 3 (or 4) templates are loaded. <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Alt+F8 doesn't show macro (English/Word 2000/SR-3)

    Confusing indeed. It might be a good idea to contact Woody about this; perhaps he can throw a light at this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •