惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
WordPress大学
WordPress大学
IT之家
IT之家
G
Google Developers Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
V
V2EX
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
V
Visual Studio Blog
有赞技术团队
有赞技术团队
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网

博客园 - 大洋

在asp.net 项目的bin目录中使用子目录 MVC项目引用备注 OAuth相关备注 手动安装windows的磁盘清理工具 在CentOS上安装 MongoDB CentOS 笔记 MongoDb 判断字段长度比较好的方法 MongoDb 出现配置服务不同步的处理 Exiting an iOS App with Xamarin Silverlight 离线安装包 搭建高可用mongodb集群(四)—— 分片 如何稳定地使用 Google 搜索https://encrypted.google.com/ widows 2008 同步时间命令 MySql 初始化权限脚本 [转] windows下Svn服务器之必须提交修改注释篇 给编译好的DLL增加签名 Anychart 破解备注 Javascript 日期时间格式正则 MongoDB C# 操作备忘
批量修改WORD表格属性
大洋 · 2014-08-12 · via 博客园 - 大洋

有时候需要对word中很多表格的属性进行修改,而word无法批量修改属性,所有这里记录一个宏

Sub TableFormatter()
Dim oTbl As Table, i As Integer
For Each oTbl In Selection.Tables
  With oTbl
    .Rows.AllowBreakAcrossPages = False
    .Rows(1).HeadingFormat = True
    For i = 1 To .Columns.Count
      If i = 1 Then .Columns(i).Width = InchesToPoints(1.19)
      If i = 2 Then .Columns(i).Width = InchesToPoints(2#)
      If i = 3 Then .Columns(i).Width = InchesToPoints(1.19)
      If i = 4 Then .Columns(i).Width = InchesToPoints(2#)
      If i = 5 Then .Columns(i).Width = InchesToPoints(2.62)
    Next
  End With
Next
End Sub