Results 1 to 17 of 17

Extract rows of data based on keyword

Threaded View

TheRetroChief Extract rows of data based on... 09-30-2008, 06:51 AM
royUK Maybe the code in this could... 09-30-2008, 07:14 AM
Phil_V Below I have tried to explain... 09-30-2008, 07:21 AM
Andy Pope For a coded solution Sub... 09-30-2008, 07:26 AM
TheRetroChief Thanks chaps, I'm working... 09-30-2008, 07:42 AM
TheRetroChief smoothly done... 09-30-2008, 07:43 AM
royUK This works in the first table... 09-30-2008, 08:05 AM
TheRetroChief Doesn't seem to work chief on... 09-30-2008, 09:50 AM
royUK I've adjusted the Field so... 09-30-2008, 10:06 AM
TheRetroChief Ah yes, that does the... 09-30-2008, 10:56 AM
royUK Hopefully sorted now ... 09-30-2008, 11:14 AM
TheRetroChief Spot on my man!! I shall now... 09-30-2008, 11:57 AM
TheRetroChief Just one last thing.... 09-30-2008, 12:46 PM
royUK post back with specific... 09-30-2008, 12:09 PM
royUK You could use the worksheet... 10-02-2008, 06:18 AM
tom-barnett1 Re: Extract rows of data... 11-04-2013, 06:14 PM
AB33 Re: Extract rows of data... 11-04-2013, 06:25 PM
  1. #3
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Post

    Below I have tried to explain the steps of a macro as clearly as possible to help you understand what is happening so that you can modify it as required.
    I have also re-atached your spreadsheet with the macro loaded into it.

    Sub Extract_Quoter()
    Const quoter_to_extract = "Andy H"
    
    ' Every command following this, and before 'End With' that starts with a . is refering to the first sheet in this workbook
    With ThisWorkbook.Worksheets(1)
        .AutoFilterMode = False ' Remove any filters currently on the data
        .UsedRange.AutoFilter field:=1, Criteria1:=quoter_to_extract ' Filter columnA (field 1), using the criteria that it must match 'quoter_to_extract'
        .UsedRange.Copy Destination:=ThisWorkbook.Worksheets(3).Range("A1") 'Copy the data shown now to Worksheet 3
        .AutoFilterMode = False ' Remove the filter again
    End With
    End Sub

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro or Formula to extract data
    By incognito in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-24-2007, 11:28 PM
  2. sort a set of data based on another set of data
    By sry_deep in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-23-2007, 09:50 AM
  3. Replies: 5
    Last Post: 09-17-2007, 11:16 AM
  4. Select rows with data
    By vandanavai in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2006, 02:59 AM
  5. Need to extract random data using set criteria...
    By dance621 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2006, 06:03 AM

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