Can't modify the "Key Tip" for the toolbar in Word 2007
We were trying to upgrade an Wod 2003 template (dot) to 2007 template (dotm). This template has a custom toolbar and the toolbar still seemd to work in Word 2007. Problem was, the key tips ware all messed up like my buttons are being assigned key tips I didn't assign and there just doesn't seem to be a way to modify them. Me and a colleague suggested that we upgrade the old toolbar to a ribbon (i.e. complete overhau) but that just doesn't seem feasible for the project as of the moment. I did play with ribbon customization in Visual Studio 2008 a bit and I was able to do a little this and that like:
Call a macro inside an onClick method
Globals.ThisDocument.Application.Run("MyMacroFunction", ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
And check for an insertion point in word, still on an onClick method
Selection selection = Globals.ThisDocument.Application.Selection;
if (selection.Type == WdSelectionType.wdSelectionIP)
{
//do something fancy here
}
If you want to learn about creating your own ribbon using Visual Studio, there's a great video on how to do it.
UPDATE:
After a lot of searching, I found some interesting articles related to the dotm template file.
Hands on: Master the Office 2007 Ribbon
Introducing the Office (2007) Open XML File Formats
Explore an Office Open XML Format ZIP package
Document Interop Initiative