找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 9815|回复: 0

Word护眼色切换宏

[复制链接]
发表于 2020-2-28 19:19:59 | 显示全部楼层 |阅读模式
本帖最后由 老刘1号 于 2020-2-28 21:13 编辑

背景色调整(护眼色).bas
  1. Attribute VB_Name = "文档背景色调整"
  2. Sub 绿豆沙护眼背景()
  3.     ActiveWindow.View.DisplayBackgrounds = True
  4.     ActiveDocument.Background.Fill.ForeColor.RGB = RGB(199, 237, 204)
  5.     ActiveDocument.Background.Fill.Visible = msoTrue
  6.     ActiveDocument.Background.Fill.Solid
  7. End Sub
  8. Sub 黑色背景()
  9.     ActiveWindow.View.DisplayBackgrounds = True
  10.     ActiveDocument.Background.Fill.ForeColor.RGB = RGB(0, 0, 0)
  11.     ActiveDocument.Background.Fill.Visible = msoTrue
  12.     ActiveDocument.Background.Fill.Solid
  13. End Sub
  14. Sub 白色背景()
  15.     ActiveWindow.View.DisplayBackgrounds = True
  16.     ActiveDocument.Background.Fill.ForeColor.RGB = RGB(255, 255, 255)
  17.     ActiveDocument.Background.Fill.Visible = msoTrue
  18.     ActiveDocument.Background.Fill.Solid
  19. End Sub

复制代码
设置为快捷键,可按照:
https://zhidao.baidu.com/question/499060134892652604.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 00:29 , Processed in 0.015995 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表