Results 1 to 4 of 4
  • Thread Tools
  1. 2 Star Lounger
    Join Date
    Jan 2004
    Location
    Mount Prospect, Illinois
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ribbon customization in a 2003-compatible .dot?

    I have a customer moving (not soon enough) from Word 2003 to 2010. They would like an add-in that is compatible with both versions of Word, and would greatly prefer not having to do a DLL install on each user's computer -- that makes a "global template" the optimal solution.
    A .dotm won't run in 2003, but they'd very much like to have a custom tab on the Ribbon with the custom features I'm adding -- without having to use the AddIns tab.


    I know this can be accomplished with a VSTO project, but that creates a DLL that must be installed. Can the IRibbonUI interface, specifically the OnLoad functionality, be accomplished solely within a .dot?


    Everything beyond that I can handle: a little late binding... some Application.Version checks... and the 2003 versus 2007 differences are trivial. I just can't get at the IRibbonUI object, so far as I can tell, without creating a VSTO add-in.

    Thanks in advance,
    Joel

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 27 Times in 26 Posts
    Joel,

    It's safe to say there's no way to associate Ribbon customizations with a .dot - the storage structures required for Ribbon customization just don't exist in a .dot.

    Although it would be a pain, maybe you'll need to maintain two parallel global templates for a while - one for 2003 and one for 2007.

    Gary

  4. New Lounger
    Join Date
    Dec 2009
    Location
    Goulburn. NSW, Australia
    Posts
    17
    Thanks
    1
    Thanked 4 Times in 4 Posts
    If you want a tool that will reduce the pain in dealing with the Ribbon when you're doing the 2007 version, go to http://leafcreations.org/ and download the Ribbon Editor.

  5. 5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    841
    Thanks
    0
    Thanked 9 Times in 8 Posts
    I would suggest using the existing .DOT template for both versions of Word. But in Word 2010, add a .DOTM template that contains the Ribbon code only. The Ribbon code will call macros from the .DOT template. (You'll need a small bit of code in the .DOTM template to integrate Word 2010 and the Ribbon.) When the move to Word 2010 is complete, copy the code modules, users forms, etc. from the .DOT template to the .DOTM template.

Posting Permissions

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