ncssVar Property
Returns or sets a Boolean that determines if the text will be enclosed in a VAR element. The VAR element is used to specify a programming variable and is typically rendered as italic.
expression.ncssVar
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example encloses all text currently within STRONG elements within VAR tags. The text will now appear bold and italic.
Sub NcssVarTag()
Dim objSs As IFPStyleState
Dim objLine1 As IHTMLElement
Dim strHTML As String
strHTML = "<strong>This is a sample that will appear within a VAR element.</strong>"
Application.ActiveDocument.body.innerHTML = strHTML
For Each objLine1 In Application.ActiveDocument.all.tags("strong")
Set objSs = Application.ActiveDocument.createStyleState
objSs.gatherFromElement objLine1
objSs.ncssVar = True
objSs.apply
Next objLine1
End Sub