本文教你如何使用Word 内置宏,批量将指定文件夹内的 Word 文档(.doc 或 .docx)转换为 PDF,使用环境为windows。 步骤: 1. 打开 Word; 2. 按 Alt + F11 打开 VBA 编辑器; 3. 选择菜单:插入 → 模块; 4. 粘贴以下代码: Sub BatchConvertWordToPDF() Dim dlg As FileDialog Dim doc As Document Dim folderPath As String Dim fileName As Str…