Hi,
I am trying to apply autofilter to one of my date column inorder filter data between two dates. I am using code stage to achieve this, below is the code I am using
GetWorkbook(handle,Nothing).Worksheets(sheetName).Activate
GetWorkbook(handle,Nothing).ActiveSheet.Range("A3:CN3000").AutoFilter(Field:=38, Criteria1:=">=1/1/2014", Operator:="xlAnd", Criteria2:="<=12/31/2016")
I am getting "Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))" Exception. I am attaching screenshot of the code stage.
Kindly help me what mistake I am making.
Note:
I have filter successfully using macros with below codes:
Range("A3:CN3000").AutoFilter
ActiveSheet.Range("$A$1:$C$20").AutoFilter Field:=38, Criteria1:=">=1/1/2014", Operator:=xlAnd, Criteria2:="<=12/31/2016"
Same thing when I tried to achieve through code stage I am getting above mentioned exception.
I am trying to apply autofilter to one of my date column inorder filter data between two dates. I am using code stage to achieve this, below is the code I am using
GetWorkbook(handle,Nothing).Worksheets(sheetName).Activate
GetWorkbook(handle,Nothing).ActiveSheet.Range("A3:CN3000").AutoFilter(Field:=38, Criteria1:=">=1/1/2014", Operator:="xlAnd", Criteria2:="<=12/31/2016")
I am getting "Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))" Exception. I am attaching screenshot of the code stage.
Kindly help me what mistake I am making.
Note:
I have filter successfully using macros with below codes:
Range("A3:CN3000").AutoFilter
ActiveSheet.Range("$A$1:$C$20").AutoFilter Field:=38, Criteria1:=">=1/1/2014", Operator:=xlAnd, Criteria2:="<=12/31/2016"
Same thing when I tried to achieve through code stage I am getting above mentioned exception.