+ Reply to Thread
Results 1 to 2 of 2

Search Through range cells in multiple sheets

  1. #1
    Registered User
    Join Date
    08-24-2022
    Location
    hugo
    MS-Off Ver
    13
    Posts
    40

    Post Search Through range cells in multiple sheets

    Hello,
    I am trying to search through a few sheets in a work book for a specific number that could be in a range of cells and once found it will rename that sheet.

    So lets say I have 8 sheets in a workbook and I need to rename the sheet based on a value in a cell, the cell can slightly vary though, so I would need to say something like this:

    For each sheet in workbook
    and for each cell in range E1:N13

    If we find value 123456 then rename that sheet to New Name1

    If we find value 7891011 then rename that sheet to New Name2

    I have spend hours trying figure this out and just can't for the life of me get anything to work.

    There will never run into the same value in multiple sheets so that won't be an issue.

    Sample file attached with just 2 sheets for testing code

    help is much appreciated!
    Attached Files Attached Files
    Last edited by excelgirl84; 09-27-2022 at 04:42 PM.

  2. #2
    Registered User
    Join Date
    08-24-2022
    Location
    hugo
    MS-Off Ver
    13
    Posts
    40

    Re: Search Through range cells in multiple sheets

    I solved it myself! Yay! In case anyone is looking for something like this I'll paste my code below. Its based on if there were 4 sheets in a workbook and if i'm just naming them the same as the value i'm looking for. That can be tweaked to anything 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)

Similar Threads

  1. [SOLVED] XLOOKUP using INDIRECT with named range to search across multiple dynamic sheets
    By MangoFresh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2022, 11:24 AM
  2. [SOLVED] Search function for multiple cells / range
    By kubo3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2019, 04:01 AM
  3. Replies: 2
    Last Post: 06-24-2015, 09:08 AM
  4. [SOLVED] Search for multiple matching cells and copy/paste range?
    By papercut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2014, 11:24 AM
  5. [SOLVED] COUNTIF search range of cells for multiple specific text.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 06:38 PM
  6. Search for multiple words in range of cells...answer in adjacent cell
    By TheDudestMonk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2013, 07:49 AM
  7. search in multiple cells and sheets
    By martinlall in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-01-2008, 07:24 AM

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