M
Modemjunkie
Thanks to assistance in another group, I found the following macro,
which saves my wbks to two directories, allowing me to delete the
backups in my active directory and still have copies:
Sub SaveToTwoLocations()
Dim strFileA, strFileB, strFileC
ActiveDocument.Save
strFileA = ActiveDocument.Name
'Define backup path shown in next line below
strFileB = "h:\work\backups\" & strFileA
strFileC = ActiveDocument.FullName
ActiveDocument.SaveAs FileName:=strFileB
ActiveDocument.SaveAs FileName:=strFileC
End Sub
Now, I want to take it a step further and, once the second .wbk is
created in the backups allow the macro to delete the original .wbk in
the active directory all as part of the same macro -- in one click of
the save in two places button.
That way my active directories will contain only the latest version of
a document, but the backup directory will contain the previous version
of every file.
The people in the other groups suggest I cannot do this for some
reason, but I don't understand why not.
So if anyone has any suggestions for command I can add to the above
macro, your help will be appreciated.
len
(e-mail address removed)
which saves my wbks to two directories, allowing me to delete the
backups in my active directory and still have copies:
Sub SaveToTwoLocations()
Dim strFileA, strFileB, strFileC
ActiveDocument.Save
strFileA = ActiveDocument.Name
'Define backup path shown in next line below
strFileB = "h:\work\backups\" & strFileA
strFileC = ActiveDocument.FullName
ActiveDocument.SaveAs FileName:=strFileB
ActiveDocument.SaveAs FileName:=strFileC
End Sub
Now, I want to take it a step further and, once the second .wbk is
created in the backups allow the macro to delete the original .wbk in
the active directory all as part of the same macro -- in one click of
the save in two places button.
That way my active directories will contain only the latest version of
a document, but the backup directory will contain the previous version
of every file.
The people in the other groups suggest I cannot do this for some
reason, but I don't understand why not.
So if anyone has any suggestions for command I can add to the above
macro, your help will be appreciated.
len
(e-mail address removed)