+ Reply to Thread
Results 1 to 9 of 9

search in multiple sheets

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    25

    search in multiple sheets

    Hello to all

    I have an excel with 33 sheets

    In the first sheet i have a drop down list with 4 values (word)

    I need to search what user picks from that list, to all the other sheets in Range("A1:A4").

    So what i'm actually looking for is Sheets("Sheet1").Range("A1") = All other sheets. Range ("A1:A4").

    The ideal solution whould be if the value was found to copy+paste all the sheet to a new workbook.

    Thank you in advance

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: search in multiple sheets

    What is the name of the sheet that contains the drop down list? I assume the drop down list would be in cell A1. Is this correct?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    03-19-2014
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: search in multiple sheets

    Correct

    The drop down list is in A1

    Sheets("select") is the name of the sheet with the drop down list
    Last edited by whitoulias; 03-19-2014 at 09:58 AM.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: search in multiple sheets

    Copy and paste this macro into the worksheet code module. Do the following: right click the tab for the sheet "select" and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. At the moment, it assumes that the workbook with the drop down list is named "Master1" and the workbook to which the sheets will be copied is named "Master2". This macro will need some changes to make it suit your situation. I have included comment on some lines to indicate what you may need to change. The macro will search for the value in the drop down list in all the other sheets and if the value exists, it will copy the sheets to a newly-created workbook.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: search in multiple sheets

    Sorry. The macro in my previous post will have to be modified. I'll get back to you as soon as I can.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: search in multiple sheets

    Following the instructions in Post# 4, try this macro:
    Please Login or Register  to view this content.
    Last edited by Mumps1; 03-19-2014 at 12:52 PM.

  7. #7
    Registered User
    Join Date
    03-19-2014
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: search in multiple sheets

    thx Mumps

    I'm testing it now

  8. #8
    Registered User
    Join Date
    03-19-2014
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: search in multiple sheets

    Mumps

    It works great

    Thank you for your time and the solution

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: search in multiple sheets

    My pleasure.

+ 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. Search for a string in multiple excel files with multiple sheets
    By ghermanu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2012, 05:46 PM
  2. Search for Multiple String Values on Multiple Sheets and Copy Rows to New Sheet
    By rrtikker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 12:21 PM
  3. Search multiple sheets and return list of multiple results
    By Abuck in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-07-2012, 11:59 AM
  4. Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sheets
    By davidbriansmith in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2011, 12:31 PM
  5. Search and Delete Across Multiple Sheets According to Values in Sheets
    By Tyler_Durden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2009, 04:40 PM

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