spacesurfer

Modifying and Customizing Office 2007 Ribbon UI

24 posts in this topic

hmm sounds complicated intriguing and what the heck will try it out thanks

0

Share this post


Link to post
Share on other sites

Thanks for the tutorial. I've a few questions, however, if anyone can help.

I use Word for different purposes on my different machines, and when I am typing something lengthy I generally like to just get the text down before messing around with any complex formatting. For that reason, I've made some customised toolbars in Office 2003, which I've been using up until now. After reading this tutorial I decided to try to convert some of these into the ribbon, but upon making my first one I have encountered a problem. The ribbon is far too high, and with the few commands I inserted into the groups I had thought that the ribbon would be shrunk in order to show them in the best way possible. Instead it appears to show three rows of buttons, when it could put them all horizontally on one. Is there anything that can be added into the XML data to force the ribbon to only use one row?

post-229127-1233568375_thumb.jpg

Too much wasted space!

From what I've seen of the ribbon interface, I've come to like it somewhat, but if I can't clean it up and remove the many distracting formatting buttons I may have to go back to 2003, which I really don't want to have to do.

0

Share this post


Link to post
Share on other sites

Short answer - no.

Reason is that the height of all the tabs is 3 icons high. You cannot set the height of individual tabs. So, no matter if you were to arrange the icons to go from left to right (instead of top to bottom), it will still be 3 icons high and you'll have space.

From the looks of it, you don't have enough to make a new tab anyway. It's probably better if you add your commands to an existing tab(s).

However, but, also.... there is a way to group your tabs to make the buttons go from left to right instead of top to bottom by using the

<buttonGroup id="groupid">
<button id="button1" image="buttonimage1" screentip="tip1" />
<button id="button2" image="buttonimage2" screentip="tip2" />
</buttonGroup>

Edited by spacesurfer
0

Share this post


Link to post
Share on other sites

Ah well. I suppose I can move the quick launch bar and customise that for what I want, but it is a less elegant solution. I hope Microsoft allows resizable ribbon bars (at least custom ones) in the next version of office. All the same, thanks for the quick reply.

0

Share this post


Link to post
Share on other sites

This is absolutely superb! I'd been trawling and trawling for so long to no avail then came across this and in one short day have come on leaps and bounds. Thank you Spacesurfer!

0

Share this post


Link to post
Share on other sites

My pleasure.

It does seem, however, that not many people are interested in changing their default ribbon ui. i, for one, couldn't stand the default ribbon ui. i had to have it the way i want it.

i'm glad the this method works with office 2010 as well!

0

Share this post


Link to post
Share on other sites

Hey, thanks for the great guide. I'm somewhat new to modifying this and need some help. What I'd like to do is create a new tab (which I can do) and use some buttons for specific symbols (such as the summation symbol or tickmarks). I know how to get the buttons on, but how do I get it to link a button to insert a specific symbol? Is it possible to do this just using xml code or do I have to use macros? I'd like to set this up on multiple computers to work with all spreadsheets, but I know word or excel don't have macros enabled automatically and if I can avoid using macros I'd prefer that.

Thanks again!

0

Share this post


Link to post
Share on other sites

You can't do with just the xml. The xml only points to VBA code (i.e. macros) or visual c++. xml does not and cannot run commands on its own.

You will have to use macros. Just record the macro for what you're trying to do. Save the final file as .dotm for the macro-enabled template. It doesn't matter what you're macro settings are. As long as normal.dotm is macro-enabled, you shouldn't have problems.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.