Rename select tabs from cell references

  • Good afternoon,


    I am totally stuck on this one. I have a document with 9 tabs in it, and I only want to rename tabs 4, 5, 6, and 7 from cell E3 in each of those tabs. Everything I try either renames all the tabs, or only tab 1. I greatly appreciate any help here!


    Thanks,
    DT

  • Re: Rename select tabs from cell references


    Hi djagxk8,


    Try this:



    Note I've put an error trap if the text in cell E3 cannot be used as a valid sheet name, but you will have to investigate what the issue is. This includes no entry in cell E3, the entry is greater than 31 characters, there's invalid character(s), the text in cell E3 is History, there's already a tab in the current workbook with the same name as what's in cell E3 etc.


    Regards,


    Robert

  • Re: Rename select tabs from cell references


    Thanks Robert,


    For some reason it's just giving me the error message. Could it be because the cell I have it referencing for the name is populated by a formula?


    Here's what I have so far:




    Thanks,
    DT

  • Re: Rename select tabs from cell references


    Okay, I don't know the solution, but I think I figured out the problem I'm having.


    The error is happening because my sheets aren't originally named "Sheet6", and so on. Is there a way to change the sheet names regardless of what they're original names are?


    Thanks again!
    DT

  • Re: Rename select tabs from cell references


    Solved! I didn't know you could refer to the array by codename rather than worksheet name.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!