Using the Ribbon in Excel 2007

HunterN

Active Member
Joined
Mar 19, 2002
Messages
479
Hi all, I am testing to convert over from Excel 2000 to 2007. I have a lot of applications written in Excel 2000, that have a 'create menu' subroutine that uses a menu sheet to add a new button on the CommandBar. I can open this in 2007 and the application adds the new tab 'Add-Ins'. All my menus are there and sub menus are there.

What I want to do is to make the other tabs be removed.

I made the .rel file look like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
<Relationship Id="customUIRelID"
Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility"
Target="customUI/customUI.xml" />
</Relationships>


I made the customUI file look like this: (I removed the < and /> ).

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
ribbon startFromScratch="false"
tabs
tab idMso="TabHome" visible="false"

tab IdMso="TabAddins" label="Vet Commands"
tabs
ribbon
customUI


I loaded these into the .zip file of the program. And then renamed it back to .xlsm.


But, it stills shows all the other tabs.

Does anyone see anything that I have wrong?

Thanks, Nancy
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I have not tested this idea but I wonder whether the line
Code:
tab idMso="TabHome" visible="false"
is correct?
I would have expected something like:
Code:
tab idMso="TabHome" visible=False
 
Upvote 0
If you do not want the other tabs visble then set the startFromScratch="true"

But if you are playing with the ribbonx why not create your own tabs rather than rely on the Add-ins tab, which will include any menus/toolbars from other add-ins.
 
Upvote 0
I would put this inside the xml - startFromScratch="true"
but, then I really have to start from scratch and I don't have time to redo all of the applications I have in Excel before we are moving to 2007. If I keep it as "false" then at least it reads my original 'createmenu' module and moves it under the Add-Ins tab.

Maybe when I have more time I will redo all of them to be 'startfromScratch'.


I was able to get the tab name to change correctly. I had the name of the tab spelled wrong. The correct why to do it is:

tab idMso="TabAddIns" label="New Stuff"


Thanks,

Nancy Hunter
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,932
Members
449,134
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top