+ Reply to Thread
Results 1 to 6 of 6

Search and find info, if correct info found copy into new worksheet

  1. #1
    Registered User
    Join Date
    08-08-2011
    Location
    Wakefield, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Search and find info, if correct info found copy into new worksheet

    Hi,

    I have approx 15 worksheets for my workbook containing lots of information of importance.

    I want to be able to look for a key work on any of the worksheets and then have this automatically pasted into a new worksheet on demand.

    I have seen Search Macro's working so i suppose i need something similar to this that will bring forward a box asking for what you want to search for..

    Any suggestions on what VB macro to use??
    Last edited by JnrParki; 08-13-2011 at 02:55 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and find info, if correct info found copy into new worksheet

    Maybe this:

    http://www.excelforum.com/excel-prog...ste-macro.html
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-08-2011
    Location
    Wakefield, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Search and find info, if correct info found copy into new worksheet

    Hi,

    Thanks for quick response. Have just tested this now and it's bringing forward an error on the opening line.

    Sub SearchSheets()

    It just keeps highlighting this yellow saying:

    Compile error: Expected: Identifier.

    Any further suggestions???

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and find info, if correct info found copy into new worksheet

    Try taking all the code out of the Module. Then manually type in Sub SearchSheets and press Enter. If the macro name is accepted, you will see this:
    Please Login or Register  to view this content.
    ...excel adding the underlined stuff.

    Now paste in all the code that goes between.

  5. #5
    Registered User
    Join Date
    08-08-2011
    Location
    Wakefield, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Search and find info, if correct info found copy into new worksheet

    This works brilliant now

    Thanks

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and find info, if correct info found copy into new worksheet

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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