+ Reply to Thread
Results 1 to 3 of 3

Search Worksheets if not found

  1. #1
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Search Worksheets if not found

    The code below searches sheets in a workbook and lists what is found on the search page. I need to figure out a way to create a message box if nothing is found and stop the code. When nothing is found it will list cells from the first and last page of the workbook. I have attached a sample workbook for you to review.


    Please Login or Register  to view this content.
    Test - 11.30.2023.xlsm

  2. #2
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    88

    Re: Search Worksheets if not found

    Check this:
    Please Login or Register  to view this content.
    Sorry, but I don't understand this:
    When nothing is found it will list cells from the first and last page of the workbook.
    Can you show an example?

  3. #3
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Search Worksheets if not found

    This is perfect. Thank you very much.

+ 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] Search all Worksheets for List of Values -- Mark as found or Highlight
    By dburge07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2021, 11:50 AM
  2. [SOLVED] Search cell value in all worksheets & return the name of the worksheet where it was found
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2018, 03:55 PM
  3. Replies: 6
    Last Post: 07-18-2017, 04:51 PM
  4. Search for value in a range and overwrite if found and create new if not found
    By mm671750 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-04-2016, 01:19 PM
  5. vba code to search all worksheets for a word - if found, return value from A1
    By kday98 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2015, 06:52 PM
  6. [SOLVED] Search within a column and repeat the search until all items are found
    By RANDY LIPOSKY in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-09-2014, 10:23 AM
  7. [SOLVED] Macro ignores search code when 1 of the 2 search parameters is not found
    By BrodyNoochie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 05:21 PM

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