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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Thanks for replying Worf,

i have figured it out!

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

s
 
Last edited:
Upvote 0
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,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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