Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created November 3, 2017 17:45
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 ndthanh/fef221fafb95df5d3636457f6c9cebb1 to your computer and use it in GitHub Desktop.
Save ndthanh/fef221fafb95df5d3636457f6c9cebb1 to your computer and use it in GitHub Desktop.
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<contextMenus>
<contextMenu idMso="ContextMenuCell">
<button id="MyButton" label="Say It"
insertBeforeMso="Cut"
onAction="SayIt"
image="avatar"/>
<menu id="MySubMenu" label="Case Menu" insertBeforeMso="Cut" >
<button id="Menu1Button1" label="Upper Case"
imageMso="U" onAction="UpperMacro"/>
<button id="Menu1Button2" label="Lower Case"
imageMso="L" onAction="LowerMacro"/>
<button id="Menu1Button3" label="Proper Case"
imageMso="P" onAction="ProperMacro"/>
</menu>
<menuSeparator id="MySeparator" insertBeforeMso="Cut" />
</contextMenu>
</contextMenus>
</customUI>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment