- ·上一篇教育:在word如何不字竖过来
- ·下一篇教育:word文档如何阴影,阴影,文档
word如何选择多张表格,多张,表格,选择
1.在word中怎么一次选中所有表格
1.ALT+F8,打开宏对话框,创建名为SelectAllTables的宏。代码如下:
Sub SelectAllTables()
Dim tempTable As Table
Application.ScreenUpdating = False
2. '判断文档是否被保护
If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
MsgBox "文档已保护,此时不能选中多个表格!"
Exit Sub
End If
3.'删除所有可编辑的区域
ActiveDocument. wdEditorEveryone
4.'添加可编辑区域
For Each tempTable In ActiveDocument.Tables
tempTable.Range.Editors.Add wdEditorEveryone
Next
'选中所有可编辑区域
ActiveDocument. wdEditorEveryone
'删除所有可编辑的区域
ActiveDocument. wdEditorEveryone
Application.ScreenUpdating = True
End Sub
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)