返回集合中前一个对象。只读。
本示例为所选内容之前的段落设置其段前和段后的间距。
Set myPara = Selection.Paragraphs(1).Previous
With myPara
.SpaceAfter = 12
.SpaceBefore = 6
End With
如果所选内容位于表格中,则本示例选定表中前一行的内容。
If Selection.Information(wdWithInTable) = True Then
Selection.Rows(1).Previous.Select
End If
本示例显示活动文档中倒数第二个域的域代码。
Set aField = ActiveDocument _
.Fields(ActiveDocument.Fields.Count).Previous
MsgBox "Field code = " & aField.Code