Dear All,
I am new to bluepism and this is my first post!
I have managed to create a custom Excel object which includes the filtering feature. However It works well when only a single criteria is used, I am attempting to filter only records that have "Failed" written, or that have blank values in the field of interest using the following code:
However when running the process showing Excel output, only the "Blank" cells are being selected to be filtered:
How can I proceed to use more than one criteria please?
I am new to bluepism and this is my first post!
I have managed to create a custom Excel object which includes the filtering feature. However It works well when only a single criteria is used, I am attempting to filter only records that have "Failed" written, or that have blank values in the field of interest using the following code:
Code:
Dim worksheet as Object
Worksheet = GetWorkbook(handle, Nothing). ActiveSheet
worksheet.UsedRange.AutoFilter (Field:= fieldToBeFiltered, Criteria1:=criteriaToFilter, Operator:=2, Criteria2:="=")
However when running the process showing Excel output, only the "Blank" cells are being selected to be filtered:
How can I proceed to use more than one criteria please?