Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Invisible Toolbar Items (97)

    Hi All,

    It's late here but this was done a few hours ago when I still had some sanity.

    [Does this sound familiar?]

    I was playing around with
    CommandBars("whatever").Controls(n).TooltipText

    There had been a thread back in Oct "Change Tooltips (2000) [#79224]" (it's too late to get the link and it's not really relevant anyway) about changing the tooltip for macros on a toolbar. So I decided to play with it.

    I went into the Customize dialog and dragged a macro out to my Formatting toolbar. Right clicked the button and changed the Name. Looks good so I clicked Close. It's NOT there. The button that was just on the Formatting toolbar isn't there anymore! Maybe I deleted it somehow. Went back to customize and it's there. Close and it's gone. Customize and it's there. Maybe this has something to do with the fact that it's the Formatting toolbar and the button is formatted to be invisible when you're not customizing it? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    So I tried this with the Standard toolbar. Seems to be OK - most of the time.

    Part of what seems to make a difference was whether I changed the Name of the button to delete the "Normal.module-name." part of the macro name to just the name after the module (ie, the sub name). But this is in no way consistent.

    Any thoughts on this one?

    thks.

    Fred

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Invisible Toolbar Items (97)

    Hi Fred,

    Are you sure you had the right customization context? In Word2000, you usually can choose to make the customization in Normal, the attached template, or the document.

    What you'll actually see when you are done will depend on the precedence of templates, n'est ce pas?
    Fell into that trap more than once <img src=/S/bummer.gif border=0 alt=bummer width=15 height=15>

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Invisible Toolbar Items (97)

    Hi Klaus,

    I think you're right - you usually are. The document I was working in has a template other than Normal (call it xx.dot) and, of course, Normal. I just tried a quick experiment (too tired to do more). Changed the template to xx when I was doing the template customization. Moved a macro button to my Formatting toolbar. After closing out of Customization, the macro button was there. What got me was that I seemed to have different behvior depending on whether I moved the button to the Standard tb vs the Formatting tb.

    OK, one more experiment. Added a macro button to my Standard tb with Save In=Normal. Closed out and the button was on Standard tb as expected. Used Alt+drag to drag it to the Formatting tb. Went into Customize with Save In still=Normal. The button is only on the Standard tb. Now I switched the Save In to xx.dot. Now I see the button on Formatting and NOT on Standard.

    What does this all mean? Does it mean my Standard tb takes its definition of buttons from Normal while my Formatting tb takes its definition from xx.dot? That's weird!

    Is there some way to find out what template governs the definition of what you're seeing? If I were writing VBA to go thru the controls on a toolbar, how do I set what template governs? Or do you get the union of templates at the VBA level?

    Thanks.

    Fred

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Invisible Toolbar Items (97)

    I think in some sense it's a "union of templates"; the customizations are applied in the order described here (How Word Resolves Conflicts) (they forgot "0. Document", I guess).

    So if you add a button to the formatting toolbar in normal.dot, and another in the attached template B.dot, and a third in a global add-in C.dot, then all three will appear in the document based on B.dot with global Add-in C.dot loaded.
    And if you remove the button added in normal.dot in B.dot, it won't appear in the document.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

  5. #5
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Invisible Toolbar Items (97)

    Hi Klaus,

    Thks for the tip. I had looked at the article you mentioned some time ago, printed it out, and filed it. So I looked at it again this morning (did you think I "filed it" in the garbage?).

    Not sure I saw much in there that addressed the issue in detail, although I think I see what is going on. I didn't pay much attention when I was adding the items to the toolbars and menus as to which template was shown in the Customize window.

    As it turns out, I think I didn't use a very good approach for customizing my toolbars in my templates (I can hear Charles Kenyon now).

    What I have is a template that I use for my Word sessions in my computer users group for the notes I hand out. Call that word-sig.dot. Then, of course, Normal.dot is a global template. I also have a template for a bookmark utility that I got that serves as another global template.

    I think most of my customizations, including the macros I recorded, went into Normal.dot. But since these are for my Word sessions, they should have gone into word-sig.dot. This error of thinking became even more apparent when someone the other day asked me to send them my notes and the macros. I had to send them my notes, word-sig.dot and my Normal.dot (since I didn't want to spend the time transferring the macros and customizations to word-sig.dot). I had to explain how to set things up on their system. Ugh!

    So, time permitting, I'll go back and put all the customizations in word-sig.dot and remove them from Normal.dot. It turns out that Normal.dot had grown to 700K. Maybe there's a good session for a future Word session in all of this.

    Fred

Posting Permissions

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