Sub 全篇删除表格后一行空行() Dim i AsInteger i = 0 ForEach tempTable In ActiveDocument.Tables With tempTable '选中表格 .Select '光标到表后一行 Selection.MoveDown Unit:=wdParagraph '判断为空行则删除 If Selection.EndOf(Unit:=wdLine, Extend:=wdMove) = 0Then Selection.Delete i = i + 1 EndIf EndWith Next tempTable MsgBox ("共调整【" & i & "】处空行") EndSub