• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

奋斗中...

曾经的程序员。ASP.NET/C#, JavaScript, PL/SQL, T-SQL; 工具: VS2003/2005, Oracle, SQLServer; 偶尔写点CSS, 批处理.
头脑中经常有新想法, 可惜没有去实现.
Never give up.
Never get into a fight with a pig. Both of you will get dirty. But the pig actually enjoys it.
  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2020年4月19日

VBA操作WORD(七)设置每一级大纲式样

摘要: 摘抄自网络的一些代码,以备后用,部分也有修改。 部分来源于: https://zhuanlan.zhihu.com/p/35695960 Sub 设置每一级样式格式() With ActiveDocument.Styles(wdStyleHeading1).Font .Color = wdColor 阅读全文

posted @ 2020-04-19 22:44 jes 阅读(4726) 评论(0) 推荐(0)

VBA操作WORD(六)另存为不含宏的文档

摘要: Sub 另存为不含宏的文档() Application.DisplayAlerts = False Application.ScreenUpdating = False Dim oDoc As Document Set oDoc = Word.ActiveDocument Dim oRng As R 阅读全文

posted @ 2020-04-19 21:19 jes 阅读(3666) 评论(0) 推荐(0)

vba 用文档第一句话作为文件名另存为新文档

摘要: ActiveDocument.Paragraphs(1).Range.Text vba一直提醒出错,后来MsgBox(ActiveDocument.Paragraphs(1).Range.Text & ".doc")后发现中间还有个换行符,怪不得老是提醒错误。 阅读全文

posted @ 2020-04-19 11:32 jes 阅读(1284) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3