如何阻止我的保存和打印(Microsoft word)宏覆盖以前的保存?

时间:2014-09-19 22:35:03

标签: ms-word

如果它有帮助,这是宏代码。

Sub Macro1()

Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
    wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= _
    wdPrintAllPages, Collate:=True, Background:=True, PrintToFile:=False, _
    PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
    PrintZoomPaperHeight:=0
ChangeFileOpenDirectory "C:\Users\Medical\Documents\LabSlips\"
ActiveDocument.SaveAs2 FileName:="Michele H.docx", FileFormat:= _
    wdFormatXMLDocument, LockComments:=False, Password:="", AddToRecentFiles _
    :=True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts _
    :=False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
    SaveAsAOCELetter:=False, CompatibilityMode:=14
End Sub

0 个答案:

没有答案