Skip to content

Instantly share code, notes, and snippets.

@rgherta
Last active January 19, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgherta/ca69b75e16c9b6264254b16a2790fbcc to your computer and use it in GitHub Desktop.
Save rgherta/ca69b75e16c9b6264254b16a2790fbcc to your computer and use it in GitHub Desktop.
Custom Addin with Ribbon in Excel
#Rels
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId7" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
<Relationship Id="rId6" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
<Relationship Id="rId5" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>
</Relationships>
#customUI folder
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="SG1" label="Reports" >
<group id="customGroup1" label="Payments" >
<button id="customButton1" label="Invoice Report" imageMso="AccessListCustom" onAction="InvoicesMain" />
<editBox id="MyEditBox" maxLength="1" sizeString="WW" label="Delimiter" imageMso="TableColumnsInsertRightExcel" getText="UpdateEditBox" onChange="SetTextValue"/>
</group>
<group id="customGroup2" label="CSV" >
<button id="customButton2" label="CSV Merge" imageMso="ReviewCompareMenu" onAction="CSVMain" size="large" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment