vb.net - HRESULT: 0x800A03EC VB -
obook.worksheets(1).range("$d$1:$d$4000").autofilter(field:=4, criteria:="#n/a")
running code following error: unhandled exception of type 'system.runtime.interopservices.comexception' occurred in mscorlib.dll
additional information: exception hresult: 0x800a03ec
after looking around internet , trying work, struggling find answers.
i code filter out of #n/a entries in column d.
you can't use field:=4
1 column range. field
parameter index range's columns, not actual column number (eg. 4 col d). second parameter criteria1
, not criteria
:
obook.worksheets(1).range("$d$1:$d$4000").autofilter(field:=1, criteria1:="<>#n/a")
Comments
Post a Comment