Consulting

Results 1 to 5 of 5

Thread: How do I attach a ribbon button to a particular template in Word 2010?

  1. #1
    VBAX Regular
    Joined
    Oct 2015
    Posts
    16
    Location

    How do I attach a ribbon button to a particular template in Word 2010?

    Hello,

    I'm quite new to VBA programming so there's alot I don't know so please bear with me if my questions seem banal!

    I wish to assign a macro to a custom ribbon button on Word 2010 BUT ONLY FOR A PARTICULAR TEMPLATE FILE so that the button only appears when that template has been attached to the file I'm working on ...

    There will be about 30 users using this over the network in my office, so the idea is that storing the button on the template file will allow the button to be portable to other users without me having to manually install it on each user's PC ...

    Many thanks, Helen

  2. #2
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,335
    Location
    See: http://gregmaxey.mvps.org/word_tip_p...bbon_main.html but if you are using Word 2010 or higher you can add button to the ribbon with the user interface with the option to be in all documents or only the specific document/template. The button icons are limited though.
    Greg

    Visit my website: http://gregmaxey.com

  3. #3
    VBAX Regular
    Joined
    Oct 2015
    Posts
    16
    Location
    Hi Greg,

    I _am_ using 2010 but have been unable to add a button to the ribbon for a particular template, when I add the button it is always there irrespective of which document/template I have open. The only customisable thing that I have been able to store to a template is a keyboard shortcut to my macro ... this is not quite what I want :-(

    How do I add a ribbon button to a particular template? I have been adding the button via: right click on ribbon ->Customize the ribbon. I cannot see any option here to save it to a particular template?

    Thanks, Helen.

  4. #4
    You cannot use the built-in editor to edit the ribbon of a particular template, only the QAT (Quick Access Toolbar). You need the Custom UI editor, which is described in Greg's web page http://gregmaxey.mvps.org/word_tip_p...bbon_main.html
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  5. #5
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,335
    Location
    Helen,

    Yes, I stand corrected. I've never used the built-in UI to customize the ribbon itself. Graham is correct. Only the QAT works the way I suggested.

    Thanks Graham.
    Greg

    Visit my website: http://gregmaxey.com

Tags for this Thread

Posting Permissions

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