bcrpanther
New Member
- Joined
- Jul 28, 2015
- Messages
- 3
Hello to all,
I'm getting a 1004 error when trying to apply a autofilter using a array. Bellow is the line of code in question:
Worksheets(CONBaselineSheet).Range("A1:" & GetColumnLetter(CONLastTaskColumn) & GBLProjectFile.TotalTasks + 1).AutoFilter Field:=varField.Field, Criteria1:=varField.Values, Operator:=xlFilterValues
Variable values:
Range => "A1:" & GetColumnLetter(CONLastTaskColumn) & GBLProjectFile.TotalTasks + 1 equates to => "A2:AB1250"
varField.field => 6 and I varified that the field exsists
varValues is a variant array with 2 values "SHS", "LT"
Any Ideas?
Thanks!!
I'm getting a 1004 error when trying to apply a autofilter using a array. Bellow is the line of code in question:
Worksheets(CONBaselineSheet).Range("A1:" & GetColumnLetter(CONLastTaskColumn) & GBLProjectFile.TotalTasks + 1).AutoFilter Field:=varField.Field, Criteria1:=varField.Values, Operator:=xlFilterValues
Variable values:
Range => "A1:" & GetColumnLetter(CONLastTaskColumn) & GBLProjectFile.TotalTasks + 1 equates to => "A2:AB1250"
varField.field => 6 and I varified that the field exsists
varValues is a variant array with 2 values "SHS", "LT"
Any Ideas?
Thanks!!