M
mikefnz
I've been using Grahm Mayor's excellent vba to save in two locations. Now I
need to save in three locations and need to tweak the original code.
My efforts need some refinement!
Any suggestions would be greatly appreciated.
Cheers
Mike
Sub backup2()
'
' backup2 Macro
'
'
Dim strFileA As String
Dim strFileB As String
Dim strFileC As String
Dim strFileD As String
ActiveDocument.Save
strFileA = ActiveDocument.Name
'Define backup path shown in blue below
strFileD = "F:\Temp word backups\Backup " & strFileA
strFileB = "D:\Temp word backups\Backup " & strFileA
strFileC = ActiveDocument.FullName
ActiveDocument.SaveAs FileName:=strFileD
ActiveDocument.SaveAs FileName:=strFileB
ActiveDocument.SaveAs FileName:=strFileC
End Sub
need to save in three locations and need to tweak the original code.
My efforts need some refinement!
Any suggestions would be greatly appreciated.
Cheers
Mike
Sub backup2()
'
' backup2 Macro
'
'
Dim strFileA As String
Dim strFileB As String
Dim strFileC As String
Dim strFileD As String
ActiveDocument.Save
strFileA = ActiveDocument.Name
'Define backup path shown in blue below
strFileD = "F:\Temp word backups\Backup " & strFileA
strFileB = "D:\Temp word backups\Backup " & strFileA
strFileC = ActiveDocument.FullName
ActiveDocument.SaveAs FileName:=strFileD
ActiveDocument.SaveAs FileName:=strFileB
ActiveDocument.SaveAs FileName:=strFileC
End Sub