Hi.
I have the following code I got from this forum. It renames a sheet based on the contents of cell B5. It works fine but when there is a duplicate name in B5 (I have multiple sheets) it errors.
Is there something I can add that will handle duplicate names, e.g. add (1) after the name if it is a duplicate?
Thanks
Ian
![]()
Please Login or Register to view this content.
Bookmarks