juslearning
Programmer
Hi guys and gals,
Am attempting to write a macro to create sheets automatically, have done the major bit and all works well but want to replace the runtime error 1004 'cannot rename sheet etc' when I accidently enter the same name of an existing sheet.
I would like to replace it with my own msgbox, so as to replace the end and debug options. Have tried several pieces of code but to no avail, can anyone please help.
thanks again.
Am attempting to write a macro to create sheets automatically, have done the major bit and all works well but want to replace the runtime error 1004 'cannot rename sheet etc' when I accidently enter the same name of an existing sheet.
I would like to replace it with my own msgbox, so as to replace the end and debug options. Have tried several pieces of code but to no avail, can anyone please help.
thanks again.