Function SaveAs2 does not work properly
Hello together, when I try to use the function SaveAs2 it fails at trying to create the file new. It only works at overriding an existing document.
I use following code:
ActiveDocument.SaveAs2 FileName:=GlobalPath + "\" + GlobalFile, FileFormat _ :=wdFormatXMLDocumentMacroEnabled, LockComments:=False, Password:="", _ AddToRecentFiles:=True, WritePassword:="", ReadOnlyRecommended:=False, _ EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False, SaveFormsData _ :=False, SaveAsAOCELetter:=False, CompatibilityMode:=wdWord2013
I use Word 2013.
Has anyone an idea why this happens?
|