View Single Post
 
Old 06-13-2016, 02:57 AM
Marco Hof Marco Hof is offline Windows 10 Office 2013
Novice
 
Join Date: Jun 2016
Posts: 2
Marco Hof is on a distinguished road
Default 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?
Reply With Quote