Results 1 to 11 of 11
  1. #1
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Toolbar not attached... (W97)

    Although I should be able to figure this out, my braincells are moving a lil slow today....

    I emailed myself a copy of a template (.dot) that I was working on at home. The template had a toolbar created in the template (associated with the template, not normal.dot). When I opened the template at work, I expected to see the toolbar, but it was not there. ( I checked template/Addins/Organizer). What am I missing here, other than the obvious.... 'the toolbar'

    - Confused! <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Toolbar not attached... (W97)

    Check the CustomizationContext when creating the toolbar - this is often not the document or template that you expect, it is best to specifiy it explicitly as in...
    CustomizationContext = ActiveDocument.AttachedTemplate

    StuartR

  3. #3
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Toolbar not attached... (W97)

    I looked up the CustmizationContext.... not sure I understand it wholly... where do I insert this line of code? Into the "word object/ This document"?

  4. #4
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Brussels, Brussel, Belgium
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar not attached... (W97)

    hi,

    did you create this tooolbar yourself? make sure before you create it that you select the template in the save in: combobox in the customize dialog (of which the prgrammatical equivalent is the customizationcontext property), or use the organiser to move the toolbar to the correct template.
    another possibily is that this template was originally placed in the startup directory of word and creates its toolbars on the fly when it is loaded. In that case, save it to the corresponding directory of the computer you mailed it to and then it should recreate the toolbar.

    greetings,

  5. #5
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Toolbar not attached... (W97)

    1. I did create the toolbar.
    2. I did select the name of the template to SAVE IN: (didn't save it to Normal or another template... )


    I've done this MANY times before (created custom toolbars... and never had this problem) - I'm just not getting it!

  6. #6
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar not attached... (W97)

    Just checking...

    Do you see the toolbar listed under View | Toolbars ?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  7. #7
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Toolbar not attached... (W97)

    I think I have just confused the issue.
    You use CustomizationContext if you are creating the toolbar from within a Macro.
    Otherwise you use the Organiser and /or the Save In combobox as described in other replies.

    StuartR

  8. #8
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Toolbar not attached... (W97)

    When I create the template, I see the toolbar listed, but when I send it to someone else,the Templates/Addins/Toolbars does not list the toolbar. It somehow doesn't remain attached.

  9. #9
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Toolbar not attached... (W97)

    Can you look in Tools > Templates and Add Ins > Organiser > Toolbars to double check that the toolbar is associated with the correct template.

    StuartR

  10. #10
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Brussels, Brussel, Belgium
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar not attached... (W97)

    maybe this drilldown check procedure will help to determine the source of the error:

    1. at the computer where you created the template with the toolbar (this should be your homecomputer, inferring from your 1st post):
    - start word with the /a switch to open it without any add-ins loaded and without the normal.dot (windowskey + R, in the run dialog that shows type winword /a and press enter)
    - now open your template and go to the organiser:
    if you see the toolbar listed, all is ok there (are all the buttons present?)
    if not, you somehow didn't attach the toolbar correctly to the template.

    there's a remote chance one of the add-ins is resetting every toolbar, or disabling custom toolbars (also see point 2), the /a switch will show you if that's the case

    2.
    - what is the name of the toolbar?
    - is it a completely new toolbar or does it modify another toolbar?
    - if it modifies another toolbar, is the source toolbar also on the destination computer? is it enabled? does it modify a built-in or a custom toolbar?

    3. repeat step 1 for the destination computer.

    if the toolbar was listed at your homecomputer, but not at the destination, then maybe it got lost in the emailing process. check the security policy (firewall and stuff) with the people you are sending the template to. does your template contain macro's, then check if these are available at the destination computer. if this is not the case, than the security policy becomes more of a candidate for losing your toolbar. (maybe the firewall messes with your template, stripping out macros, messing up your template so much toolbars are also lost.)
    you can check this yourself at work by mailing a template with a toolbar to for instance a hotmail address and mailing it back from there to your work.

    let us know how you get along.

    greetings,

  11. #11
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Toolbar not attached... (W97)

    Try attaching this document to your template and running the List Custom CommandBars macro (use the floating toolbar or Alt+F8).

    Note: this was tested only in Word 2000.
    Attached Files Attached Files

Posting Permissions

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