A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help! Ribbon customisation



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2008, 09:25 AM posted to microsoft.public.word.docmanagement
xtine
external usenet poster
 
Posts: 15
Default Help! Ribbon customisation

I have been given a template (.dotm) that adds its own ribbon tab -
but I am blowed if I can work out how.

In the visual basic there is one module called RibbonCommands and in
it are macros such as

Sub NewMemo(ByVal control As IRibbonControl)
Documents.Add "c:\Program Files\Microsoft Office\Templates\Memo.dotm"
End Sub

which equate to each button, but I cannot see where the NewMemo macro
is called, how/where it is defining the button graphics, or the pull
down menus that you get if you click on the buttons etc.

I am not sure what was used to create the template. If I delete it
from the startup directory the menu disappears, if I put it back (even
without the documents it references) the buttons are there so it does
appear that somewhere in that .dotm the ribbon bar is defined.

Do I need to use a different tool to edit it?


Christine



  #2  
Old April 16th, 2008, 09:34 AM posted to microsoft.public.word.docmanagement
xtine
external usenet poster
 
Posts: 15
Default Help! Ribbon customisation

Sorry, just think I found out - the Custom UI tool... have just opened
it up using that and found loads of code I will need to try and
understand but I think builds the menus.

Why aren't these tools built into Word 2007?? I would have expected to
be able to edit this stuff from the VB interface or the developer tab
- not to have to download a new tool.

oh well, on with the learning process - I used to be able to 'bend'
Word 97 to do anything I wanted - 2007 is proving somewhat more
resistant.

Christine

  #3  
Old April 16th, 2008, 09:35 AM posted to microsoft.public.word.docmanagement
Jen[_10_]
external usenet poster
 
Posts: 24
Default Help! Ribbon customisation

It is called in XML and you need to open the xml component.
"xtine" wrote in message
...
I have been given a template (.dotm) that adds its own ribbon tab -
but I am blowed if I can work out how.

In the visual basic there is one module called RibbonCommands and in
it are macros such as

Sub NewMemo(ByVal control As IRibbonControl)
Documents.Add "c:\Program Files\Microsoft Office\Templates\Memo.dotm"
End Sub

which equate to each button, but I cannot see where the NewMemo macro
is called, how/where it is defining the button graphics, or the pull
down menus that you get if you click on the buttons etc.

I am not sure what was used to create the template. If I delete it
from the startup directory the menu disappears, if I put it back (even
without the documents it references) the buttons are there so it does
appear that somewhere in that .dotm the ribbon bar is defined.

Do I need to use a different tool to edit it?


Christine





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.