+ Reply to Thread
Results 1 to 3 of 3

AdvancedFilter with VBA

  1. #1
    Registered User
    Join Date
    09-12-2005
    Posts
    11

    Question AdvancedFilter with VBA

    Hello,

    I cant seem to understand this one line of code:

    myLocalSheet.Range(sheetName).AdvancedFilter Action:=xlFilterCopy, criteriaRange:=defPage.Range("QTY_Filter"), CopyToRange:=myLocalSheet.Range("A10000"), Unique:=False

    Specifically, the highlighted part,

    the thing is defPage.Range("QTY_Filter") is not one cell, its 3x2 matrix with stuff in it. and some of it is text !!!! some is empty tooo !!!!! and the 2 two rows that do have #'s have >=1

    So, how does THAT work ??
    Last edited by newToExcel; 09-28-2005 at 06:17 PM.

  2. #2
    Registered User
    Join Date
    09-12-2005
    Posts
    11
    k. i have made a lil bit of progress since the last time i posted.

    the criteria basically copies all the "non-zero" columns so for e.g.

    product | qty |
    ------------------
    prod A | - |
    prod B | 1 |
    prod C | 5 |

    after that line of code runs, ONLY prod B and prod C will be copied cause the qty column is >=1.

    I still dont understand how a 3x2 matrix can do that. i'm attaching a snap shot of the range called "QTY_Filter".

    Somebody help.....
    Attached Images Attached Images

  3. #3
    Registered User
    Join Date
    09-12-2005
    Posts
    11

    ???

    no replies !!!!

+ 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