# 下载宏文件 - https://github.com/OceanicSix/Office_macro/releases/download/1.0/Reorder_heading.bas - https://github.com/OceanicSix/Office_macro/releases/download/1.0/update_vulnlist_table.bas - https://github.com/OceanicSix/Office_macro/releases/download/1.0/change_Fontname_for_All.bas - https://github.com/OceanicSix/Office_macro/releases/download/1.0/Change_FontName_by_Style.bas - https://github.com/OceanicSix/Office_macro/releases/download/1.0/Change_FontSize_by_Style.bas - # 导入宏文件 1. 打开word后按 `Alt + F11`,进入宏开发界面 ![](https://hackmd.io/_uploads/rkNaLF9in.png) 2. 右击`Normal` 下的`Modules`文件夹,选择`Import File`( 在此处导入宏文件) ![](https://hackmd.io/_uploads/Syi-Pt9s3.png) 3. 导入后可在`Modules`文件夹下看到`module`文件 ![](https://hackmd.io/_uploads/SJyXKFci2.png) 到此,宏文件已成功导入 # 使用宏文件 在Word中选中 `view` > `Macros` > 然后选择要使用的宏 > `Run` ![](https://hackmd.io/_uploads/Hkn6Ktcih.png) # 宏文件功能介绍 ## Reorder_heading 当标题数字乱序时,可使用该宏对标题重新排序 ![](https://hackmd.io/_uploads/rytzqFqo3.png) ![](https://hackmd.io/_uploads/SJrVqY5i2.png) 1. 对`heading style`使用默认内容 ![](https://hackmd.io/_uploads/B1iOcFcjn.png) 2. 然后选择要修改的标题编号 >如要重新对2.1.1-2.1.10排序,输入2.1.1 >如要重新对3.1.1-3.1.10排序,输入3.1.1 ![](https://hackmd.io/_uploads/ByPi9Yqi2.png) 3. 修改成功后会有提示 ![](https://hackmd.io/_uploads/HyxmoK5ih.png) ![](https://hackmd.io/_uploads/BkwPjY5i2.png) ## update_vulnlist_table ``` 使用限制: 只能用于漏洞标题格式为 "x.x.x【高危】API服务器xxxx"; 无法在标题格式为 "2.1.1 【已修复】【高危】APP服务器xxxx" 中使用 添加字体格式默认为: Noto Sans S Chinese Bold ,五号(10.5) ``` 读取`漏洞详情`中的标题, 对漏洞列表中的内容进行更新 ![](https://hackmd.io/_uploads/ryYP3K5j2.png) ![](https://hackmd.io/_uploads/ryYK2Kqi3.png) ` 1. 输入`漏洞详情`的大标题 ![](https://hackmd.io/_uploads/HkL23Fcs3.png) 2. 更新成功会有提示 ![](https://hackmd.io/_uploads/rkCJpYqs3.png) ![](https://hackmd.io/_uploads/ByaS6Fci3.png) ## change_Fontname_for_All 修改全部字体的类型 ![](https://hackmd.io/_uploads/H1zEIW0i3.png) 选择新的字体 ![](https://hackmd.io/_uploads/H1hSUbAi3.png) 修改成功会有提示 ![](https://hackmd.io/_uploads/B1IwLb0j2.png) ## change_FontName_by_Style 根据字体的`Style` 来调整字体类型 ``` 部分英文字体由于无中文字体类型,可能会调整失败 ``` ![](https://hackmd.io/_uploads/rJ3eaqqoh.png) ![](https://hackmd.io/_uploads/SJGoR5qon.png) 1. 选择字体的`Style` ![](https://hackmd.io/_uploads/ryi_Tqqsn.png) 2. 选择字体的类型 ![](https://hackmd.io/_uploads/B1sh6qqjn.png) 3. 调整成功会有提示 ![](https://hackmd.io/_uploads/ByhCTq9jn.png) ## Change_FontSize_by_Style 根据字体的`Style` 来调整字体大小 ![](https://hackmd.io/_uploads/Hy-RR55j3.png) 使用方法同 [change_FontName_by_Style](#change_FontName_by_Style)