I wanted to create a template for my fellow workers and create a Macro which "Saves As.." to a specific file, and also uses the title to suggest the name.
Somehow the Macro ignores the location for the destination and opens the standard "Documents" folder
This is solved, thanks to the following code!
Sub FileSave() ' ' FileSave Macro ' Het actieve document of de actieve sjabloon opslaan ' ChangeFileOpenDirectory _ "F:\Company\Marketing\Voorstellen\Voorstellen\Voorstel\" If ActiveDocument.Path = "" Then ' If the document has never been saved, the ' value of its .Path is an empty string; otherwise ' it has the file's path and name. With Dialogs(wdDialogFileSaveAs) .Name = MakeDocName ' call the function below .Show ' the suggested name will be in the dialog End With Else ' The document has already been saved with a name ' so just save it there. ActiveDocument.Save End If End Sub Function MakeDocName() As String Dim theName As String Trim(ActiveDocument.BuiltInDocumentProperties("Title")) MakeDocName = theName ' return the assembled name End Function