PresentInPane Property

Microsoft Word Visual Basic

PresentInPane Property

Returns a Boolean that represents whether a smart document control is currently displayed in the Document Actions task pane.

expression.PresentInPane

expression    Required. An expression that returns a SmartTagAction object.

Example

The following example executes the specified smart document control.

    Dim objSmartDocControl As SmartTagAction

Set objSmartDocControl = ActiveDocument.SmartTags(1).SmartTagActions(1)

If objSmartDocControl.Type <> wdControlSmartTag Then
    If objSmartDocControl.PresentInPane Then
        objSmartDocControl.Execute
    End If
End If