2022-06-06 117
如何在Word中批量修改表格的格式
Word技巧
2022-06-06 17:44:23
1)形成宏去择文本word文件中的全部的电子和表格:「开发技术道具」-「Visual Basic」将中所代码怎么用抄袭进来。如果,在「宏」中点开「行驶」,就还可以挑选文本word文件中的各种电子和表格了。 编号:Sub 一键合并和表格()
Dim tempTable As Table
Application.ScreenUpdating = False
If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
MsgBox "文档已保护,此时不能选中多个表格!"
Exit Sub
End If
ActiveDocument.DeleteAllEditableRanges wdEditorEveryone
For Each tempTable In ActiveDocument.Tables
tempTable.Range.Editors.Add wdEditorEveryone
Next
ActiveDocument.SelectAllEditableRanges wdEditorEveryone
ActiveDocument.DeleteAllEditableRanges wdEditorEveryone
Application.ScreenUpdating = True
End Sub
相关联好的文章