For some reason, excel stops working when I use this code...
What I am trying to do is save a duplicate copy of my workbook in another location. Is there maybe another way to go about doing this? I am really new to VBA so odds are I'm making mistakes here and there. Any help or direction would be greatly appreciated :)
Thanks
Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) ThisWorkbook.SaveAs "C:\Users\Me\Desktop\test2\test2.xlsm" End Sub
What I am trying to do is save a duplicate copy of my workbook in another location. Is there maybe another way to go about doing this? I am really new to VBA so odds are I'm making mistakes here and there. Any help or direction would be greatly appreciated :)
Thanks
Comment