wps怎么把线加粗
时间:2022-06-26 14:23:54
介绍3种方法全选Word文档中所有表格,然后瞬间完成表格格式设置
1 Word自带使用“宏”功能选择,代码如下:
Sub SelectAllTables()
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
如果不清楚宏使用方法,可以百度,如果觉得麻烦,建议用下面的方法
2 表格工具Word文档自动排版软件
工具→表格工具→选中表格或周边段落
可以选中文档中
所有表格区域
所有非表格区域
所有表格首行
所有表格首列
所有表格最后1行
所有表格前1段落(可能为表名)
所有表格后1段落(可能为表注)
还可以指定表格类型
所有表格
实线边框表格
虚线边框表格
横向表格
跨页表格
而且可以约束限于选定范围和数量
选定表格前后的段落还可以限定长度
3 批量替换工具→批量替换→表格(Table)或前后段落
目标位置限制
=0处理表格
>0处理表格前的行,表格前1行=1
<0处理表格后的行,表格后1行=-1
每个找到的目标会自动加上突出显示
再用
工具→颜色工具→选中所有突出显示
进行全选
然后可以快速设置Word文档中所有表格字体、段落、样式等
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何为整个excel2007工作表设置图片背景
![](https://img.aspxhome.com/file/2023/3/a140423_0s.jpg)
如何汇总相同名字的数据
![](https://img.aspxhome.com/file/2023/0/55090_0s.png)
Windows10出现“你需要权限才能执行此操作”提示的处理方法
![](https://img.aspxhome.com/file/2023/7/48947_0s.jpg)
Excel中数据分析之回归分析介绍
![](https://img.aspxhome.com/file/2023/6/38236_0s.jpg)
Word文档里面怎么加入下划线后再打字?
wps字体怎么分散
![](https://img.aspxhome.com/file/2023/5/a167535_0s.jpg)
Word怎么制作联合文件头?Word2016中用双行合一功能做联合文件头的方法介绍
![](https://img.aspxhome.com/file/2023/5/22745_0s.jpg)
Word怎么将插入图片添加到快速访问工具栏
![](https://img.aspxhome.com/file/2023/3/32053_0s.png)
excel超过15位数字如何处理
![](https://img.aspxhome.com/file/2023/0/a140200_0s.png)
excel设置N天内生日提醒,HR必学
![](https://img.aspxhome.com/file/2023/9/a161319_0s.jpg)
word如何让超链接字变蓝
![](https://img.aspxhome.com/file/2023/7/19197_0s.jpg)
Word的styleref域是什么
Excel如何用条件格式高亮显示多列中的重复值
![](https://img.aspxhome.com/file/2023/9/a156439_0s.jpg)
Nvidia驱动不兼容Win10怎么办?
![](https://img.aspxhome.com/file/2023/5/49615_0s.jpg)
如何在Word文档中输入数字
![](https://img.aspxhome.com/file/2023/9/33539_0s.jpg)
主流文献管理软件EndNote X9安装+汉化破解图文详细教程(附下载)
![](https://img.aspxhome.com/file/2023/1/15041_0s.png)
win10系统玩DNF卡顿怎么办?win10系统玩DNF卡顿处理教程
![](https://img.aspxhome.com/file/2023/8/47978_0s.png)
如何在excel中统计数据进行数据分析
excel表格怎么导入到word中 excel表格导入word方法步骤
Win10 21H1无法安装更新怎么解决?Win10 21H1无法安装更新解决方法
![](https://img.aspxhome.com/file/2023/8/51148_0s.jpg)