You are here: Backstage View - hyperlink - getTarget
Backstage View - hyperlink - getTarget
Sets the target of the hyperlink ribbon Control.
Sample Ribbon XML file:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="false"> <!-- Ribbon XML --> </ribbon> <backstage> <tab id="btab1" label="Label 1. Tab"> <firstColumn> <group id="myGroup" style="normal" label="Form Button:"> <bottomItems> <hyperlink id="hlnk1" imageMso="ViewOnlineConnection" onAction="OnActionHyperlink"/> <hyperlink id="hlnk2" label="Goto AccessRibbon" getTarget="getTaget"/> <hyperlink id="hlnk3" imageMso="SharingOpenMailFolder" onAction="OnActionHyperlink"/> <hyperlink id="hlnk4" label="Email AccessRibbon" getTarget="getTaget"/> </bottomItems> </group> </firstColumn> </tab> <button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/> </backstage> </customUI>
Function to be copied to a standard module:
Sub GetTarget(control As IRibbonControl, ByRef target) Select Case control.Id Case "hlnk1", "hlnk2" target = "http:www.accessribbon.com" Case "hlnk3", "hlnk4" target = "mailto:info@accessribbon.com" End Select End Sub
You can find this sample in download: BackstageView 1