Hi
I have some vba in a file called template.xls. During the process I save the xls file under a new name. I run the macro and of course it errors as the filename has changed. Instead of me finding and replacing the old name with the new filename, is there some code or command I can use in order that, as the macro runs it can identify with the name of the workbook that the code sits in ??
I have some vba in a file called template.xls. During the process I save the xls file under a new name. I run the macro and of course it errors as the filename has changed. Instead of me finding and replacing the old name with the new filename, is there some code or command I can use in order that, as the macro runs it can identify with the name of the workbook that the code sits in ??