I have a macro that only works if the file that it copies from is open
Eg. Code is windows("Alan1.xls").Activate
Undone want to change this line of code.
I want to say On error then msgbox " you must make sure Alan.xls is open to run macro"
Anyone help please.
Thanks
Eg. Code is windows("Alan1.xls").Activate
Undone want to change this line of code.
I want to say On error then msgbox " you must make sure Alan.xls is open to run macro"
Anyone help please.
Thanks