+ Reply to Thread
Results 1 to 4 of 4

Macro to find sheet name based on info in a cell

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Macro to find sheet name based on info in a cell

    Evening happy campers,

    I am working on a sheet for a fellow Excel Forum user and need some input please!

    Cell A1 contains the info "NAME 1" i want a code that will look for a sheet with the same name as the info in cell A1.
    This name will change so it really needs to work on the info contained in A1.

    Cheers all
    galvinpaddy

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Macro to find sheet name based on info in a cell

    This is only a hint:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Macro to find sheet name based on info in a cell

    Hi ProntonLeah,
    Can you explain how the code works? sorry but im lost - how does it look for the info in cell A1?
    thanks
    Last edited by galvinpaddy; 04-20-2012 at 05:13 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Macro to find sheet name based on info in a cell

    ...how does it look for the info in cell A1?
    The hint doesn't, I only meant for you to loop through the sheets in the workbook, testing each sheet name against the value in cell A1. You still have to specify the sheet containing the name to find, though.

    Please Login or Register  to view this content.

+ 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