本示例将选定文本的字体格式在加粗和正常间切换。
If Selection.Type = wpsSelectionNormal Then
Selection.Font.Bold = wpsToggle
End If