+ Reply to Thread
Results 1 to 2 of 2

Please help with VBA to search through same column on different worksheets in a workbook

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    6

    Please help with VBA to search through same column on different worksheets in a workbook

    Hi guys, I wonder if you can help with a VBA-related issue I have,

    I have a workbook containing spreadsheets (with over 50,000 rows). One of the columns (for e.g. column B contains the data i need to search from).

    I need to search column B for certain words and if true, the row should be copied out onto a separate sheet. I also want to be able to search the column of cells of text for all cell that contain for example the word "tre" AND "flo" if i was looking for "tree" AND "flower".

    So all results must find cells that have tree in the body of text and the row where the search term is found would be copied to a separate worksheet. I have inserted a sample sheet.

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Please help with VBA to search through same column on different worksheets in a workbo

    Here is a macro that should do it:
    Please Login or Register  to view this content.
    See attached file with macro included.
    Attached Files Attached Files
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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