Share via


SmartTagOptions.EmbedSmartTags Property

Excel Developer Reference

True to embed smart tags on the specified workbook. Read/write Boolean.

Syntax

expression.EmbedSmartTags

expression   A variable that represents a SmartTagOptions object.

Example

In this example, Microsoft Excel determines if smart tags are enabled for the active workbook and notifies the user.

Visual Basic for Applications
  Sub UseSmartTags()
    ' Determine if smart tags are enabled for this workbook.
    If ActiveWorkbook.SmartTagOptions.EmbedSmartTags = True Then
        MsgBox "Smart tags can be embedded in this workbook."
    Else
        MsgBox "Smart tags can not be embedded in this workbook."
    End If

End Sub

See Also