如何用宏清除 删除Word 文档 表格内 空格 空行 空段落

afdsafdasf 2017-11-20 09:41:43
如何用宏清除 删除Word 文档 表格内 空格 空行 空段落 (清除选定的表格、或者全部表格)
...全文
2049 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
kshengster 2020-03-13
  • 打赏
  • 举报
回复 1
dim space as string for each uTable as Word.Table in oWordDoc.Tables for each uRow as Word.Row in uTable.Rows space = "yes" for each uCell as Word.Cell in uRow.Cells if uCell.rang.text.length > 1 then space = "no" end if next if space = yes then uRow.delete() end if next next

5,172

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 Office开发/ VBA
社区管理员
  • Office开发/ VBA社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧