+ Reply to Thread
Results 1 to 5 of 5

Macro to search for a criteria and begin copying data into a new sheet based on criteria

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    college park, maryland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Macro to search for a criteria and begin copying data into a new sheet based on criteria

    Is it possible to have a macro search for a word down column A and when it finds that word begin copying data in the row it found the word but in a differnt column, for example column E?

    For example:

    A B C D E F
    1
    2
    3 YES 3 7
    4
    5

    So when it finds the word Yes it would copy cells E3 and F3 into a new sheet.

    Please Help I've been trying to figure this out for weeks. Thanks!!!

  2. #2
    Registered User
    Join Date
    01-08-2013
    Location
    AZ, US
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Macro to search for a criteria and begin copying data into a new sheet based on criter

    The easiest way I see to do the search function is to record your macro using the cntrl+F function it looks like this:
    Please Login or Register  to view this content.
    Hope this helps.

  3. #3
    Registered User
    Join Date
    11-16-2012
    Location
    college park, maryland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Macro to search for a criteria and begin copying data into a new sheet based on criter

    Thanks! this is a good start. I am not sure how to make the code begin copying the data in column E however.

  4. #4
    Registered User
    Join Date
    01-08-2013
    Location
    AZ, US
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Macro to search for a criteria and begin copying data into a new sheet based on criter

    This should work... Pastes into sheet 2

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-16-2012
    Location
    college park, maryland
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Macro to search for a criteria and begin copying data into a new sheet based on criter

    Thanks again! however now I am getting a run time error saying "select method of range class failed".

+ 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