Add custom button to existing group Excel 2007

V

Viresh Parmar

My employer just recently converted to Excel 2007. I'm trying to
figure out how to customize the ribbon for a few add-ins I use. I'm
using Custom UI Editor to run the XMLs to edit the ribbon.

There is one piece that I'm having trouble with - how to add icons/
buttons to an existing group. For example, I want to add 'Run Report'
button to Editing group. I use the code below, but it doesn't work.
Can someone help me figure out what is wrong with my code? Not even
sure if editing an existing default excel group is possible.

Code:
<ribbon>
<tabs>
<tab idMso="TabHome" >
<group idMso="GroupEditingExcel" >
<button id="RunRpt" label="Run Report" size="normal"
onAction="MacroRpt" imageMso="Calculator" />
</group>
</tab>
</tabs>
</ribbon>
 
V

Viresh Parmar

Thanks Ron! So I guess I have to hide a group and then re-create it
with the desired changes? Doesn't seem that difficult. Thanks!

See this page Vireshhttp://www.rondebruin.nl/xmlribbongroups.htm

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm

Viresh Parmar said:
My employer just recently converted to Excel 2007. I'm trying to
figure out how to customize the ribbon for a few add-ins I use. I'm
using Custom UI Editor to run the XMLs to edit the ribbon.
There is one piece that I'm having trouble with - how to add icons/
buttons to an existing group. For example, I want to add 'Run Report'
button to Editing group. I use the code below, but it doesn't work.
Can someone help me figure out what is wrong with my code? Not even
sure if editing an existing default excel group is possible.
Code:
<ribbon>
  <tabs>
    <tab idMso="TabHome" >
      <group idMso="GroupEditingExcel" >
        <button id="RunRpt" label="Run Report" size="normal"
onAction="MacroRpt" imageMso="Calculator" />
      </group>
    </tab>
  </tabs>
</ribbon>
 
R

Ron de Bruin

Correct

The example xml is on my page

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


Thanks Ron! So I guess I have to hide a group and then re-create it
with the desired changes? Doesn't seem that difficult. Thanks!

See this page Vireshhttp://www.rondebruin.nl/xmlribbongroups.htm

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm

Viresh Parmar said:
My employer just recently converted to Excel 2007. I'm trying to
figure out how to customize the ribbon for a few add-ins I use. I'm
using Custom UI Editor to run the XMLs to edit the ribbon.
There is one piece that I'm having trouble with - how to add icons/
buttons to an existing group. For example, I want to add 'Run Report'
button to Editing group. I use the code below, but it doesn't work.
Can someone help me figure out what is wrong with my code? Not even
sure if editing an existing default excel group is possible.
Code:
<ribbon>
<tabs>
<tab idMso="TabHome" >
<group idMso="GroupEditingExcel" >
<button id="RunRpt" label="Run Report" size="normal"
onAction="MacroRpt" imageMso="Calculator" />
</group>
</tab>
</tabs>
</ribbon>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top