+ Reply to Thread
Results 1 to 7 of 7

Finding data in column a copying to entire row to new sheet

  1. #1
    Registered User
    Join Date
    06-10-2009
    Location
    knox,tenn
    MS-Off Ver
    Excel 2007
    Posts
    28

    Finding data in column a copying to entire row to new sheet

    Hi guys looking for some help on vba code to search column a for a text string when it's found i want to copy entire row to a new sheet.

    Column a contains college football schedule,I would like to search for duke.

    The data in in column a contains both team names. example Duke at Wake Forest.

    I have atttached a copy of the spreadsheet.
    Attached Files Attached Files

  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: Finding data in column a copying to entire row to new sheet

    You don't really need VBA, this is what the AutoFilter was invented for. It allows you to filter data in place to look at subsets based on filter criteria.

    1) Click on A1
    2) Turn on the Data > Filter
    3) Open the drop down in A1
    4) Apply a "text" filter for the word "duke"

    Tutorial video: http://screencast.com/t/SApDzhaS
    _________________
    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
    06-10-2009
    Location
    knox,tenn
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Finding data in column a copying to entire row to new sheet

    ok that works great.Got another question for you.
    How can i make the criteria be based on a cell value like say cell F1.
    I reorded the macro.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-10-2009
    Location
    knox,tenn
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Finding data in column a copying to entire row to new sheet

    Can anyone help me with this thanks.

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

    Re: Finding data in column a copying to entire row to new sheet

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-10-2009
    Location
    knox,tenn
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Finding data in column a copying to entire row to new sheet

    Thanks man i will give it a shot.

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

    Re: Finding data in column a copying to entire row to new sheet

    If that takes care of your question, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ 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