Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Adding button to a custom tab in excel

$
0
0

<?xml version="1.0"?><customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"><ribbon><tabs><tab insertBeforeMso="TabHome" label="T-K" id="customTab"><group label="Raw Data" id="customGroup3"><box id="box1" boxStyle="vertical"><labelControl label="RM Settings..." id="label1"/><dropDown label="Region" id="dropDown" onAction="dd_onChange"><item label="G" id="item1"/><item label="CN" id="item2"/><item label="EM" id="item3"/><item label="La" id="item4"/><item label="SE" id="item5"/></dropDown></box><separator id="separator"/><button label="Refresh Raw Data" id="customButton9" onAction="ReFreshButton" imageMso="ListSynchronize" size="large"/><button label="Re-List Raw Data" id="customButton6" onAction="ReListButton" imageMso="SourceControlRefreshStatus" size="large"/></group><group label="Builder" id="customGroup1"><button label="Add Column" id="customButton1" onAction="AddColumnButton" imageMso="TableDrawTable" size="large"/><button label="Remove Selected Column" id="customButton2" onAction="RemoveColumnButton" imageMso="InkEraseMode" size="large"/><button label="Refresh" id="customButton7" onAction="CleanFormulationsButton" imageMso="Consolidate" size="large"/><menu label="Send to BOM" id="Menu3" imageMso="ProposeNewTime" size="large"><button label="Send Selected" id="Button10" onAction="TransferselectedButton" imageMso="ObjectsSelect"/><button label="Send All" id="Button18" onAction="TransferAllButton" imageMso="Repaginate"/></menu></group><group label="BOM" id="customGroup2"><button label="BBB" id="customButton3" onAction="BBButton" imageMso="ControlsGallery" size="large"/><button label="Show Rows" id="customButton4" onAction="ShowRowsButton" imageMso="FillDown" size="normal"/><button label="Hide Rows" id="customButton5" onAction="HideRowsButton" imageMso="FillUp" size="normal"/><button label="Normalise" id="customButton8" onAction="Normalise" imageMso="TableStyleTotalsRow" size="large"/><menu label="Enter by..." id="Menu1" imageMso="SignatureInsertMenu" size="large" itemSize="large"><button label="Enter by Name" id="Button14" onAction="Enter_by_Name" imageMso="FormControlLabel"/><button label="Enter by AC value" id="Button15" onAction="Enter_by_ACOAT" imageMso="QuickStylesGallery"/></menu></group><group label="Archive" id="customGroup5"><button label="BBB" id="customButton12" onAction="BBAButton" imageMso="ControlsGallery" size="large"/></group><group label="Data" id="customGroup4"><button label="Open DKM Tools" id="customButton10" onAction="GoToDB" imageMso="HyperlinkInsert" size="large"/><button label="Send to Database" id="customButton11" onAction="Publish" imageMso="DatabaseSqlServer" size="large"/></group><group label="Cost" id="customGroup6"><button label="Update Cost Tool" id="customButton15" onAction="CostButton" imageMso="ListSynchronize" size="large"/><button label="Show Rows" id="customButton13" onAction="CostShowButton" imageMso="FillDown" size="normal"/><button label="Hide Rows" id="customButton14" onAction="CostHideButton" imageMso="FillUp" size="normal"/></group></tab></tabs></ribbon></customUI>

Above is the XML code for a custom tab called the T-K tab. By that I mean it appears next to the "Home" tab.

I want to add another button into the T-K tab, into custom group 1 (in bold). How do I go about doing that?

I am thinking that below this line

<button label="Refresh" id="customButton7" onAction="CleanFormulationsButton" imageMso="Consolidate" size="large"/>

I just put for example the following

<button label="NEWBUTTON" id="customButton30" onAction="NEWBUTTON" imageMso="Consolidate" size="small"/>

What do I need to do in terms of vba code?



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>