【发布时间】:2015-05-20 15:07:42
【问题描述】:
我目前正在修改 Microsoft Word 文档以提示用户在保存时执行某些操作。
他们选择答案后,我想将文档另存为不同的文件类型,专门将其从 .docm 转换为 .docx 文件。
Sub FileSave()
Dim myQ As Integer
With ActiveDocument
myQ = MsgBox("Is this the Final version of this document? Clicking 'Yes' will permanently disable macros for moving issues and remove the blank final page.", vbQuestion + vbYesNo)
If myQ = vbYes Then
.SaveAs2 ActiveDocument.Name & ".docx"
DeleteFinalPage
Else
.SaveAs2 ActiveDocument.Name
End If
End With
End Sub
如您所见,这会将文档保存为“DocumentNameHere.docm.docx”
我该如何摆脱文件名中那个讨厌的 .docm?
【问题讨论】: