本示例为选定文本设置删除线格式。

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