+ Reply to Thread
Results 1 to 6 of 6

Rename tabs

  1. #1
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Rename tabs

    Hi ,
    I want to rename all my tabs present in the workbook as Page 1, Page 2 , Page 3 ......
    Please help.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Rename tabs

    I'm assuming there are simply too many tabs to do this manually?

    If so, the following macro should help:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Rename tabs

    Enter the following in the Immediate window

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Rename tabs

    Thanks for the quick response.

    It is changing the name but creating a run time error.

    I wrote a code and it is changing it .

    Sub renameSheets()
    Dim iSheetCount
    For iSheetCount = 1 To Sheets.Count
    Sheets(iSheetCount).Name = "Page " & iSheetCount
    Next iSheetCount

    End Sub
    But

    But i would like a code that will ask the order of renaming like.Page / No./Tel/Acc etc. I mean i can make it according to my choice.
    Thanks for your help buddy.

  5. #5
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Rename tabs

    Whoops, should have tested beforehand!

    Sorry, I'm not really clear about that last part - are you saying you want the tabs to be named Page 1, Page 2, etc or No. 1, No. 2, etc, depending on an input?

  6. #6
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Rename tabs

    Yes you are absolutely right .
    Thanks in advance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1