Originally you said the VBA code was gone. Now you say it's not working.
Which is it?
Renaming your workbook in Windows Explorer won't delete any code that's in that workbook.
Are you saying:-
Is that what's happening?
- the code is in Name1.xlsm
- you save and close Name1.xlsm
- you rename it Name2.xlsm
- you open Name2.xlsm
- you open the VBA editor and the code has gone
Hello
Strange case this one...
Where do you rename the workbook? In Windows Explorer, using Ctrl-O in Excel, other method? There is no code involved with the renaming?