XML question?

Shinning

New Member
Joined
Apr 17, 2015
Messages
17
Hello,

Please view the following XML code:


PHP:
<customUI ******="RibbonX.Ribbon******" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon startFromScratch="true">  		
     <tabs>
	 <tab id="customTab" label="CONTROLS" insertAfterMso="TabHome">
	        <group id="customGroup1" label="Logic Elements">
			<button id="customButton1" label="Add New Block" size="large" onAction="Sheet1.Add_Block_Click" imageMso="ViewBackToColorView" />
			<button id="customButton2" label="Delete Block" size="large" onAction="Sheet1.Delete_Block_Click" imageMso="CellsDelete" />
		</group>
	  </tab>
      </tabs>
     </ribbon>
</customUI>


I don't know much about XML, but I have the above code in one of my workbooks.
In respect to this code, all I see under the office button is "New", "Open" and "Save" menu items.

I assume this comes from setting "StartFromScrtach" to true.

However, I also need the "SaveAs" item under the office button!

Can someone show me what I need to add to my XML code above in order to add in the "SaveAs" item?


Thanks
s
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Shinning

New Member
Joined
Apr 17, 2015
Messages
17
Thanks for replying Worf,

i have figured it out!

PHP:
<officeMenu>
 <button ifMso=FileSaveAs" visible="true" />
</officeMenu>

s
 
Last edited:
Upvote 0

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
This might be of interest to you. The download files contain the XML (use the CustomUI Editor to view it).
 
Upvote 0

Forum statistics

Threads
1,196,010
Messages
6,012,843
Members
441,733
Latest member
MartijnB

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
Top