+ Reply to Thread
Results 1 to 2 of 2

Return results based on multiple criteria

  1. #1
    Bryce
    Guest

    Return results based on multiple criteria

    I really realy (1) need some VBA code for these steps:

    selecting range A2:G8500within existing worksheet named "Master File"

    then, looking at data in row G and if meets one of the two or three diff.
    text inputs (i.e. "Baby Boy" or "Teenager") then it returns only that related
    data row in cells A through G and places them in an existing worksheet named
    "Children". I want this filtered data to start in cell A7 and the data to be
    sorted in ascending order to data stored in Column D from the original
    selected range.

  2. #2
    cush
    Guest

    RE: Return results based on multiple criteria

    Try this:

    Select a cell in your database.
    Turn on the Macro Recorder.
    Click on Data>Filter>AutoFilter
    Go to the Top of Col G.
    Click on the arrow and select "Baby Boy"

    Copy the rows and paste into your sheet("Children")
    Turn off the recorder and study it.

    See if you can get the code to include "Teenager" (AND)

    Activate Sheet "Children"
    Turn on you recorder and sort the new records.
    Study the code.

    "Bryce" wrote:

    > I really realy (1) need some VBA code for these steps:
    >
    > selecting range A2:G8500within existing worksheet named "Master File"
    >
    > then, looking at data in row G and if meets one of the two or three diff.
    > text inputs (i.e. "Baby Boy" or "Teenager") then it returns only that related
    > data row in cells A through G and places them in an existing worksheet named
    > "Children". I want this filtered data to start in cell A7 and the data to be
    > sorted in ascending order to data stored in Column D from the original
    > selected range.


+ 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