Consulting

Results 1 to 4 of 4

Thread: Make macros and custom tab available to Word 2010 users

  1. #1
    VBAX Regular
    Joined
    Nov 2013
    Location
    San Francisco Bay Area
    Posts
    27
    Location

    Make macros and custom tab available to Word 2010 users

    Word 2010

    New to Word VBA programming.

    I created macros to perform different tasks. I put them in a .docm file. Because I don’t know exactly what I needed I also created a .dotm file as well. They both work fine.

    I now need to make the macros available to an application that uses Word 2010. It has its own template so I can't add the macros to their template because it could change without me knowing it. I also used RibbonCreator 2010 from IDBE Avenius, love the product and the support by the way, to create a custom ribbon with buttons that “trigger” the macros.

    What I don’t understand is how to make the macros available automatically for any and all users of the other application. How do I make this an “add-in” or whatever you call it so it will make the ribbon and the macros available to the end user. Do I load the file in a certain folder? How do I tell Word 2010 that the macros, the .docm or the .dotm file exist?

    Any help or links would be appreciated. Thanks.

  2. #2
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,433
    Location
    Unless you can modify the application's template, you can only make your macros available by adding them to a global template like Normal.dotm that you can be sure of being loaded anytime Word is started. See:
    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx, http://office.microsoft.com/en-us/wo...010034127.aspx
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,719
    Location
    In Word 2010 I just put my CustomUI DOTM in ...\AppData\Roaming\Microsoft\Word\Startup

    That's one of the standard MS Word2010 locations: Application.StartupPath

    It's a Trusted Location, but I don't remember if I made it that, or if Word defaults to that. Also don't remember if I had to add it via [Options] or not. Either way, it was easy and now the special CustomUI tab is there for all documents

    http://moreaddin.com/faqs/where-is-w...up-folder.html



    Paul (The other one)

  4. #4
    VBAX Regular
    Joined
    Nov 2013
    Location
    San Francisco Bay Area
    Posts
    27
    Location
    Thanks Paul...that worked!

Posting Permissions

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