Sub 批量选中文档中所有表格()Dim tempTable As TableApplication.ScreenUpdating = FalseIf ActiveDocument.ProtectionType = wdAllowOnlyFormFields ThenMsgBox "文档已保护,此时不能选中多个表格!"Exit SubEnd IfActiveDocument.DeleteAllEditableRanges wdEditorEveryoneFor Each tempTable In ActiveDocument.TablestempTable.Range.Editors.Add wdEditorEveryoneNextActiveDocument.SelectAllEditableRanges wdEditorEveryoneActiveDocument.DeleteAllEditableRanges wdEditorEveryoneApplication.ScreenUpdating = TrueEnd Sub
