DoubleStrikeThrough Property

Microsoft Word Visual Basic

DoubleStrikeThrough Property

       

True if the specified font is formatted as double strikethrough text. Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Long.

Note   To set or return single-line strikethrough formatting, use the StrikeThrough property. Setting DoubleStrikeThrough to True sets StrikeThrough to False, and vice versa.

Example

This example applies double strikethrough formatting to the selected text.

If Selection.Type = wdSelectionNormal Then
    Selection.Font.DoubleStrikeThrough = True
Else
    MsgBox "You need to select some text."
End If

This example removes double strikethrough formatting from the first word in the active document and capitalizes the first letter in the word.

With ActiveDocument.Words(1)
    .Font.DoubleStrikeThrough = False
    .Case = wdTitleSentence
End With