• Toolbar not attached… (W97)

    Author
    Topic
    #384072

    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! confused

    Viewing 0 reply threads
    Author
    Replies
    • #657418

      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

      • #657474

        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”?

        • #657479

          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,

          • #657499

            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!

            • #657590

              Just checking…

              Do you see the toolbar listed under View | Toolbars ?

        • #657594

          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

          • #657707

            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.

            • #657748

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

              StuartR

            • #657754

              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,

            • #657773

              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.

    Viewing 0 reply threads
    Reply To: Toolbar not attached… (W97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: