Customize excel ribbon from VBA question

sombradeti

New Member
Joined
Dec 15, 2010
Messages
38
I made some custom buttons for the excel ribbon using XML on a CustomUI.xml file, however, when I save the excel file as another format and then try to save my file back to the .xlsm format all my buttons disappear. What I want to know is, can I store my XML data as a string in VBA and have a macro install the buttons from that? If that is possible how would I go about doing it?<?XML:NAMESPACE PREFIX = [default] <a href= NS = "<a href=" /><customUI xmlns="<a href=" target="_blank" customui? 01 2006 office schemas.microsoft.com http:><customUI xmlns="<a href=" target="_blank" customui? 01 2006 office schemas.microsoft.com http:>
<ribbon>
<tabs></customUI>
<customUI xmlns="<a href=" target="_blank" customui? 01 2006 office schemas.microsoft.com http:><tab idMso="TabHome">
<group id=customGroup1 insertAfterMso="GroupEditingExcel" label="Logging"></customUI>
<customUI xmlns="<a href=" target="_blank" customui? 01 2006 office schemas.microsoft.com http:></customUI></group></tab></tabs></ribbon></customUI>
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,578
Messages
6,179,647
Members
452,934
Latest member
mm1t1

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