

Save the xml file to update the customUIdemo.zip.rels fileĬode 4: XML code located in /_rels/.rels file See figure 4 and code 4 for detailsįig 4: the _rels folder - click to locate and open the. rels file in edit mode, then add code 3 to the Relationships (inside the relationships tags). Open the customUIdemo.zip in the 7-Zip File Manager.Select ① the target archive file, Archive: customUIdemo.zip and set ② the Archive format: to zip (see figure 3), then click OKįig 3: the Add to Archive dialog box: select the target zip file, Archive format: zip Modify the xlsm relationships settings.Right click the customUI folder, then select 7-Zip > Add to archive.In Windows Explorer, change the file extension of the customUIdemo.xlsm file from.Modify the xlsm file in a zip environment The xml version is also available customUI14.xml xml, and then save it in the customUI folder. (Alternative points 6 to 8) - you can download the customUI14.txt (including line break formats), change the file type extension to.Save the XML file from points 6 and 7 with the name customUI14.xml and store it in the customUI folder.Copy and paste the XML code from code 1 above.xml (described as eXtensible Markup Language file (*.xml *.xsml *.xsl *.xsd *.kml *.wsdl *.xlf *.xliff *.config) in NotePad++) In NotePad++, create a new text file with file type.On your Windows Desktop create a new Folder.xlsm extension, named customUIdemo.xlsm in this example. Copy and Paste the code from code 2 above (19 lines) to the VBA module in point 2.Open the Visual Basic Editor (VBE) and insert a new code module using the menu sequence Insert > Module.

Sub OptionPricer(control As IRibbonControl) Fig 1: the custom XLF Tools group on the Home tab - contains three buttons with labels: xlVersion, Option Pricer, and Close Three buttons are added as a group to the right hand end of the Home tab (figure 1). Written using packages such as the Custom UI Editor, the RibbonX Visual Designer, or VSTO.Written manually, as in this example, using a text editor ( NotePad++) and zip file editor ( 7-Zip).

