I know that there is a 'before save' event that I can use to run a macro whenever I save or save as the file. I've tried the following code but it doesn't appear to work and my VB skills are pretty abysmal. I've tried looking it up using a search (that's where I got this code from) but haven't had much luck getting it to work.Here's the code:
Code
Private Sub Workbook_ThisWorkbook(ByVal SaveAsUI As Boolean, cancel As Boolean)
Application.Run "'Data Entry2.xls'!CopyData"
End Sub
Thanks for any help with this.