<contextMenus> <contextMenu idMso="ContextMenuText"> <menuSeparator id="CMenuSeparator1" /> button id="BtnCMenu1" label="Block Text" imageMso="TextToolMenu" visible="true" onAction="StyleBlockText" /> </contextMenu> </contextMenus>
Sub StyleBlockText(control As IRibbonControl) Selection.Style = ActiveDocument.Styles("My Style") End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)