Closed Thread
Results 1 to 3 of 3

Rename sheets based on a piece of data on each field.

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Rename sheets based on a piece of data on each field.

    Hi I am trying to write a macro which will find the term "Asset ID" in column A on each sheet and rename that sheet to whatever the corresponding data is in column B.
    I have attached an example of the type of workbook I am working on, the "Asset ID" cell can appear anywhere on the sheet so a simple 'rename sheet based on value in cell X' is not applicable. I have this code which names the sheet based on whatever is on cell B3, is there a way to alter this to suit my purpose, I imagine it would involve a vlookup or something along these lines:

    Please Login or Register  to view this content.
    Also this code only apples to the current sheet, can I alter this to work on every sheet in the workbook without having to go into each sheet seperately and running the macro?

    Thanks very much in advance,
    Michael
    Attached Files Attached Files
    Last edited by arlu1201; 05-02-2013 at 12:25 PM. Reason: Use code tags in future.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Rename sheets based on a piece of data on each field.

    Duplicate post

    http://www.excelforum.com/excel-prog...hat-sheet.html

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Rename sheets based on a piece of data on each field.

    Thanks AB33.

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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