What I would like to achieve is to save a Word document in two places using the Save
function. It has two shortcomings, though. First, Word blinks when I save a file (because it closes saves a copy, and it becomes active document, which is closed, and then Word return to the original document). Second, macro add my backup to recent files, despite AddToRecentFiles:=False
How to avoid two faults?
Sub FileSave()
Dim currFile As String
Dim backup As String
backup = "C:\Users\" & Environ("UserName") & "\Documents\WordBackups\"
With ActiveDocument
If .Saved Or .Path = "" Then Exit Sub
If Dir(backup, vbDirectory) = "" Then
MkDir backup
MsgBox "Backup folder has been created.", vbInformation
End If
.Bookmarks.Add Name:="LastPosition"
Application.ScreenUpdating = False
.Save
currFile = .FullName
.SaveAs2 FileName:=backup & .Name, AddToRecentFiles:=False
End With
ActiveDocument.Close
Documents.Open FileName:=currFile
Selection.GoTo What:=wdGoToBookmark, Name:="LastPosition"
End Sub