Consulting

Results 1 to 2 of 2

Thread: Multiple Filters with "or"

  1. #1

    Multiple Filters with "or"

    I have 3 sets of filters I want to apply. I have no problem with the filter code, its the "Or" code between filters im struggling with.

    Currently I have:

    SetAutoFilter FieldName:="Start", FilterType:=pjAutoFilterThisWeek
    SetAutoFilter FieldName:="% Complete", FilterType:=pjAutoFilterCustom, Test1:="does not equal", Criteria1:="100%"

    Then I need "OR"

    SetAutoFilter FieldName:="Start", FilterType:=pjAutoFilterThisWeek
    SetAutoFilter FieldName:="% Complete", FilterType:=pjAutoFilterCustom, Test1:="does not equal", Criteria1:="100%"

    Another "OR"

    SetAutoFilter FieldName:="Status", FilterType:=pjAutoFilterLate
    SetAutoFilter FieldName:="% Complete", FilterType:=pjAutoFilterCustom, Test1:="does not equal", Criteria1:="On Schedule"



    Does anyone have any ideas how to replicate is filter in code.

  2. #2
    I am looking for some function to simply the complicated validation task. If you get the solution please share here also.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •