+ Reply to Thread
Results 1 to 2 of 2

Maximum criteria??

  1. #1
    Registered User
    Join Date
    12-29-2003
    Posts
    26

    Maximum criteria??

    I have a spreadsheet that I cull data from based on this routine:

    Please Login or Register  to view this content.
    Because I only want those sales reps indicated.

    Recently someone asked me if I could take the same raw data set, and select mulitple customer ship to account #'s. (and all of the data that goes with them)
    (there over 75 of them). Is there any easier way to write the macro code, and are there limitations to the number of selection criteria I can use in this routine?
    And the ship to #'s are not in sequence, they're all over the place.

    Mike.
    Last edited by VBA Noob; 02-19-2007 at 03:27 PM.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by mkingsley
    I have a spreadsheet that I cull data from based on this routine:

    Please Login or Register  to view this content.
    Because I only want those sales reps indicated.

    Recently someone asked me if I could take the same raw data set, and select mulitple customer ship to account #'s. (and all of the data that goes with them)
    (there over 75 of them). Is there any easier way to write the macro code, and are there limitations to the number of selection criteria I can use in this routine?
    And the ship to #'s are not in sequence, they're all over the place.

    Mike.
    Hi.

    I guess the easy way is to lose the loop.

    The attached (run the Macro) shows a method with no line-by-line loop but does use a 'helper' column F

    The required names are entered on sheet2, the VLookup is entered via VB code, and the Filter selects non-blank rows to move to sheet3.

    You can copy the header row and remove column F after checking that the code works for you.

    hth
    ---
    Attached Files Attached Files
    Si fractum non sit, noli id reficere.

+ 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