Is there a way to use the Excel Find statement - or something like it, in a conditional way? Or should I just loop through the region I want to search, looking for it in other ways?
Here's an example of the Find Statement:
Here's an example of how I might do it if I were just just straight look for the value:
And that latter code is probably incorrect, I just took to typing, didn't test it... just getting the idea out there.
So, is there a way to do an Excel find, otherwise, using multiple possible conditions? Not as joint conditions, but OR conditions?
Thanks for any ideas, references, links, etc.
Here's an example of the Find Statement:
Code:
Cells.Find(What:="Monkey",After:=ActiveSheet.Cells("A1") _
, LookIn:=xlValues ,LookAt:=xlPart _
, SearchOrder:=xlByRows _
, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False
).Activate
Here's an example of how I might do it if I were just just straight look for the value:
Code:
For Each Cell in MyRange.Cells
If Instr(Cell.Formula,"monkey") Or Instr(Cell.Formula,"mnky") Or Instr(Cell.Formula,"monky") Then
Cell.Column.Select
Selection.Format = "xlText"
End If
Next Cell
And that latter code is probably incorrect, I just took to typing, didn't test it... just getting the idea out there.
So, is there a way to do an Excel find, otherwise, using multiple possible conditions? Not as joint conditions, but OR conditions?
Thanks for any ideas, references, links, etc.