View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
marnie marnie is offline
external usenet poster
 
Posts: 16
Default Save copy of workbook

I need to save a duplicate copy of a workbook each time it is saved,
overwritting the duplicate. I tried this code and it did not work. No
errors but it did not create the copy.

Private Sub Worksheet_beforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
ActiveWorkbook.SaveCopyAs "g:\EHSAdr.xls"
End Sub

Thanks!