What is the "Save As" menu item id?

Add-in Express™ Support Service
That's what is more important than anything else

What is the "Save As" menu item id?
I want to create a new menu item right after the Save As one 
Andrei B




Posts: 89
Joined: 2009-09-30
Hi, I have a Ribbon Office Menu, which has a "Custom Save" button, and I want to set its InsertAfterId so that the button shows up after the "Save As" one.

Is there a list of all the menu item ids? What should I set it to? Thanks
Posted 11 Nov, 2009 13:40:14 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Andrei,

Please see the following download: http://www.microsoft.com/downloads/details.aspx?FamilyID=4329d9e9-4d11-46a5-898d-23e4f331e9ae&DisplayLang=en.


Andrei Smolin
Add-in Express Team Leader
Posted 11 Nov, 2009 16:36:41 Top
Andrei B




Posts: 89
Joined: 2009-09-30
I still can't find the integer ID of the Save As / Save Office Menu items in those files. It tried looking at the 2003 and 2007 versions.
Posted 16 Nov, 2009 14:00:24 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Oh, a Ribbon ID is a string, not an integer. See the ControlName column in those files.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Nov, 2009 15:24:38 Top
Andrei B




Posts: 89
Joined: 2009-09-30
Its not working for me. I have a RibbonOfficeMenu with a RibbonButton called "Custom Save" and I set the "InsertAfterId" or "InsertAfterIdMso" to "FileSaveAs" (which is from WordRibbonControls.xlsx)... but the button still shows up at the bottom of the ribbon menu, but I want it to show up after the Save As menu item.
Posted 18 Nov, 2009 10:13:13 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Andrei,

You need to use InsertAfterIdMso := 'FileSaveAsMenu'. Does it work for you?


Andrei Smolin
Add-in Express Team Leader
Posted 18 Nov, 2009 10:19:58 Top
Andrei B




Posts: 89
Joined: 2009-09-30
It works! Thank you.
Posted 19 Nov, 2009 12:44:53 Top
Andrei B




Posts: 89
Joined: 2009-09-30
Now, how do I do this with a CommandBarButton inside of a MainMenu? I want a "Custom Save" button to appear under the "Save As" menu item. I have a MenuItem control with a CommandBarButton control and when I set its "AfterId" to 'FileSaveAsMenu' I get the error 'FileSaveAsMenu is not a valid integer value.'

it doesn't work if I set the property programatically either
Posted 19 Nov, 2009 13:07:18 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Andrei,

While the ID of a Ribbon control is a string, the ID of a command bar control is an integer value; find it using our free Built-in Control Scanner (see Downloads | Free Stuff in the main menu of the web site).


Andrei Smolin
Add-in Express Team Leader
Posted 20 Nov, 2009 05:18:46 Top
Andrei B




Posts: 89
Joined: 2009-09-30
That worked. I found the id of the Save As menuitem is 748

thanks
Posted 20 Nov, 2009 11:47:54 Top