saving 2 documents simultaneously

  • Thread starter Thread starter stuart
  • Start date Start date
S

stuart

how can one save a back up of their document
simultaneously without having to save the two documents
individually
 
Use the following macro, changing the destination for the back up file to
something other than the A: drive if you wish

Macro to save a file and make a copy on the A” drive

Dim SourceFile, DestinationFile
ActiveDocument.Save
SourceFile = ActiveDocument.Name ' Define source file name.
DestinationFile = "A:\" & SourceFile ' Define target file name.
ActiveDocument.Close
FileCopy SourceFile, DestinationFile ' Copy source to target
Documents.Open SourceFile

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
Back
Top