word中如何批量设置表格属性
时间:2011-04-14
来源:互联网
RT
从网页上下载的word文档中表格边框打印出来是看不见的。想设置为打印出来能看见的黑色框线,但表格实在太多,能批量设置么?
谢谢!!
从网页上下载的word文档中表格边框打印出来是看不见的。想设置为打印出来能看见的黑色框线,但表格实在太多,能批量设置么?
谢谢!!
作者: cartmen 发布时间: 2011-04-14
自己帮自己顶一下吧~~·
作者: cartmen 发布时间: 2011-04-15
Sub setformat()
Dim Myshe As Table
For Each Myshe In ThisDocument.Tables
' Myshe.PreferredWidthType = wdPreferredWidthPercent
' Myshe.PreferredWidth = 100
Myshe.Borders.InsideLineStyle = wdLineStyleSingle
Myshe.Borders.Enable = True
Myshe.Borders.InsideLineWidth = wdLineWidth075pt
' Myshe.Borders(2).LineStyle = wdLineStyleSingle
' Myshe.Borders(4).LineStyle = wdLineStyleSingle
Myshe.Borders(1).LineWidth = wdLineWidth075pt
Myshe.Borders(3).LineWidth = wdLineWidth075pt
Myshe.Borders(2).LineWidth = wdLineWidth075pt
Myshe.Borders(4).LineWidth = wdLineWidth075pt
Next
End Sub
Dim Myshe As Table
For Each Myshe In ThisDocument.Tables
' Myshe.PreferredWidthType = wdPreferredWidthPercent
' Myshe.PreferredWidth = 100
Myshe.Borders.InsideLineStyle = wdLineStyleSingle
Myshe.Borders.Enable = True
Myshe.Borders.InsideLineWidth = wdLineWidth075pt
' Myshe.Borders(2).LineStyle = wdLineStyleSingle
' Myshe.Borders(4).LineStyle = wdLineStyleSingle
Myshe.Borders(1).LineWidth = wdLineWidth075pt
Myshe.Borders(3).LineWidth = wdLineWidth075pt
Myshe.Borders(2).LineWidth = wdLineWidth075pt
Myshe.Borders(4).LineWidth = wdLineWidth075pt
Next
End Sub
作者: doitbest 发布时间: 2011-04-15
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28