Hi @PD2,
i checked its working fine what exception/error you are getting.
renameasheet (1).xaml (9.7 KB)
Regards, Arivu