Adding existing buttons to Excel 2010 add-In

Posted on 2013-10-01
Medium Priority
Last Modified: 2013-10-02
I have an Add-In I Created for our users here, it works great, installs perfectly, all is good, so far.  I would like to add some existing Excel buttons that don't appear in the ribbons to be on my Add-In ribbon, but I can't see how to do that, unless I write little macros to invoke the command associated with the button and then attach that macro.  Am I missing something?  Can I not add buttons for existing Excel functionality (e.g. Select Visible Cells and Close, etc.) Thanks!
Question by:pmpatane
  • 3
  • 3
LVL 18

Expert Comment

by:Steven Harris
ID: 39538504
File > Options > Customize Ribbon

Popular Commands are displayed at first.  Change dropdown selection to show All Commands.

Author Comment

ID: 39538552
It needs to be part of the AddIn and I need to use XML to make the change.
LVL 18

Accepted Solution

Steven Harris earned 800 total points
ID: 39538654
I would like to add some existing Excel buttons that don't appear in the ribbons to be on my Add-In ribbon

Sorry, I misinterpreted that.  I thought you were looking to change only your ribbon, not the distributed one.

Attached is the Office 2010 'Fluent User Interface Control Identifiers' for Excel Controls.

If you want to add missing commands to your own custom Ribbon you must know the RibbonX for the command.

Find the idMso
-Point to the command in the "Commands Not in the Ribbon" list with your mouse and you will see the name in parenthesis, such as:  'Select Visible Cells (TableSelectVisibleCells)'
-Open the attachment and search for the idMso you just found

TableSelectVisibleCells is a button, so:

<toggleButton idMso="TableSelectVisibleCells" size="normal"/>
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Author Closing Comment

ID: 39539936
I had to leave out the word "toggle", but this is exactly what I needed...Thank you!
LVL 18

Expert Comment

by:Steven Harris
ID: 39540047
I'm glad I could be of assistance!  I also have some other various Office 2010 and 2013 Control Identifiers if you would like copies of those as well:

Outlook (multiple), Word, Powerpoint, InfoPath...

Outlook (multiple), Word, Powerpoint, InfoPath, Excel...

Author Comment

ID: 39540563
I would love to have all of the above (except Infopath)...thanks!!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As a person who answers a lot of questions, I often see code that could be simplified, made easier to read, and perhaps most importantly made easier to maintain if the code was modified to use the Select Case statement. This article explains how to…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question