K
keri
Hi I have this code;
CELLS.find(what:="taf", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False) _
.Activate
And want to insert either something that says if "taf" is not found
execute the same search but look for sheets("taf").range("k1").value
instead - and then continue doing the rest of the code
However I have tried this without success - so should I just insert
error handling instead (my code is breaking on the cells.find
statement at the moment when it cannot find "taf"). I have never
managed to get my own error handling to work (it seems to execute
whether there is an error or not) so any help on either of these
options would be gratefully recieved.
CELLS.find(what:="taf", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False) _
.Activate
And want to insert either something that says if "taf" is not found
execute the same search but look for sheets("taf").range("k1").value
instead - and then continue doing the rest of the code
However I have tried this without success - so should I just insert
error handling instead (my code is breaking on the cells.find
statement at the moment when it cannot find "taf"). I have never
managed to get my own error handling to work (it seems to execute
whether there is an error or not) so any help on either of these
options would be gratefully recieved.