+ Reply to Thread
Results 1 to 7 of 7

Filter Macro, using number 'position' instead on names

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    Durham
    MS-Off Ver
    Excel 2003
    Posts
    61

    Filter Macro, using number 'position' instead on names

    Hi

    I am trying to do a macro which filters a table to show one persons name at a time, then use that name to lookup thair email and email them a remittance.

    I have the rest sorted, i think! but I just need a macro to select the name, using the position, i.e 2, 3, 4, 5 etc instead of the name, as the names change

    Please Login or Register  to view this content.
    The above code is a test to see if I could get the filter to select the first name, but didnt work!

    How can I get the filter to select the number position?

    When I get this sorted I will be putting a loop untill end. Then add the rest of the code I have, but need this 'simple' bit first

    I have excel 2010

    Thank You
    Last edited by cooket4; 05-21-2013 at 09:31 AM.

  2. #2
    Registered User
    Join Date
    05-15-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Filter Macro, using number 'position' instead on names

    When you say number instead of name, what do you mean?

    You want to select the 2nd name of the drop down list?

  3. #3
    Registered User
    Join Date
    01-27-2012
    Location
    Durham
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Filter Macro, using number 'position' instead on names

    say the list is:

    Jayne
    Steve
    Tom
    Wendy

    Jane would be number 1
    Steve number 2
    Tom Number 3
    wendy Number 4

    When using the macro, the criteria it selects will be "Jane" or "Steve" ect. But I need the Filter Macro to sat Number 1 or Number 2, that was I can put in a loop untill by using "Number" +1

    Hope this helps

  4. #4
    Registered User
    Join Date
    01-27-2012
    Location
    Durham
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Filter Macro, using number 'position' instead on names

    Ive cheated abit. I have added a number beside each name via formula.


    Please Login or Register  to view this content.
    Now I need to figure out how to make the filter criteria "Number" to do "Number +1" in the loop, and change the Do Untill Criteria1:=10 to the end of the filter driteria

    Any Suggestions?

    Thanks

  5. #5
    Registered User
    Join Date
    05-15-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Filter Macro, using number 'position' instead on names

    You mean like this?

    Please Login or Register  to view this content.
    this will only filter by number, so you can either add a column with a number next to the name, or define what each number means within the code which can get sloppy
    Last edited by krabine; 05-15-2013 at 11:13 AM.

  6. #6
    Registered User
    Join Date
    01-27-2012
    Location
    Durham
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Filter Macro, using number 'position' instead on names

    Yes thats it

    I can now doa count for the do untill . As some names will be duplicated is there a count unique?

    Thanks again

  7. #7
    Registered User
    Join Date
    01-27-2012
    Location
    Durham
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Filter Macro, using number 'position' instead on names

    nevermind, I can do a max on the numbers ive already put in. Im having a thick day!

+ 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