D
deepak kakade
Hi,
I am facing problem while using Public Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
I have use the following code to take back of particular file.
Public Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
ActiveWorkbook.SaveCopyAs Filename:="D:\BackupFiles\" & ActiveWorkbook.Name
End Sub
but if i open new workbook this macro does not work in new workbook. I need to re enter the codes in new workbook. Is there any solution on this? please help someone!
I am facing problem while using Public Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
I have use the following code to take back of particular file.
Public Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
ActiveWorkbook.SaveCopyAs Filename:="D:\BackupFiles\" & ActiveWorkbook.Name
End Sub
but if i open new workbook this macro does not work in new workbook. I need to re enter the codes in new workbook. Is there any solution on this? please help someone!