P
plivingstone
Hi,
I have a piece of code that puts an error "NA()" in column W if the ID
in column A is not found on a reference worksheet ...
like this:
Range("W2:W" & Range("A1").End(xlDown).Row).Formula =
"=IF(COUNTIF(A:A,Recon_Activity!T:T)=0,NA(),"""")"
Normally, say I want to select the entire row of all the ones with an
error put in by the formula, I can use this:
Range("A2:W" &
Range("A1").End(xlDown).Row).SpecialCells(xlCellTypeFormulas,
xlErrors).EntireRow.Select
or I can in one step delete them all.
However, I would like to select the cells in column A where an error
value is found in column W ... much the same as above, but I would
instead of selectiing the entire row, how do I try and select the
cells in column A where there is an error on the same row in column
W...
I tried the below but it doesn't work:
Range("A2:W" &
Range("A1").End(xlDown).Row).SpecialCells(xlCellTypeFormulas,
xlErrors).Rows(0,1).select
thanks for any help
Philip
I have a piece of code that puts an error "NA()" in column W if the ID
in column A is not found on a reference worksheet ...
like this:
Range("W2:W" & Range("A1").End(xlDown).Row).Formula =
"=IF(COUNTIF(A:A,Recon_Activity!T:T)=0,NA(),"""")"
Normally, say I want to select the entire row of all the ones with an
error put in by the formula, I can use this:
Range("A2:W" &
Range("A1").End(xlDown).Row).SpecialCells(xlCellTypeFormulas,
xlErrors).EntireRow.Select
or I can in one step delete them all.
However, I would like to select the cells in column A where an error
value is found in column W ... much the same as above, but I would
instead of selectiing the entire row, how do I try and select the
cells in column A where there is an error on the same row in column
W...
I tried the below but it doesn't work:
Range("A2:W" &
Range("A1").End(xlDown).Row).SpecialCells(xlCellTypeFormulas,
xlErrors).Rows(0,1).select
thanks for any help
Philip