Is there any way to batch rename sheets in VBA:
Something like:
sheets(array(1, 2, 3)).name = array("hep", "hey", "heppa!")
naming sheets 1, 2, 3 as “hep”, “hey” and “heppa!”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is as close as I could get it, someone else may find a method to skip a loop
[Updated with the standard way I would do this below including error handling – I hadn’t actually tried setting a collection of sheets like this before]
Normal CodeWhy the batch rename, curiousity or do do you have such a large amount of renaming to do that you are concerned with code runtime?
Array Effort