Print打印夹 = "D:\整治打印_" & Str简
Dim Fso As New FileSystemObject
'工程_引用_microsoft scripting Runtime
如果【引用】中也没有,就点击“浏览”按钮,添加c:\windows\system32\srrun.dll
If Not Fso.FolderExists(Print打印夹) Then
'创建文件夹
MkDir Print打印夹
End If
Set Word = WordApp.Documents.Open(App.Path & "\存放夹\施工月报.docx")
Word.SaveAs (Print打印夹 & "\施工月报_" & Str简 & Number月报数 & ".docx")
'另存为 终于成功了!!!
[此贴子已经被作者于2022-6-30 16:29编辑过]