I can't seem to wrap my head around the find function in vba - i keep getting errors left and right
What I'm trying to do is cycle through a few rows and if column 5 contains a certain word I would like to highlight that cell otherwise leave it alone
Basically (I know what is below is incorrect but i figured it might give a more basic idea of what I'm hoping to accomplish):
my problem seems to lay somewhere in how I'm using the find function. I've tried messing around with the what:=, where:=, etc's but I cant figure out where I'm losing it and was hoping someone out there could give me a brief explination of the find function for my purpose since i can't seem to tailor any examples i find on the web to work and the help feature also doesn't seem to click in my brain.
Thanks
What I'm trying to do is cycle through a few rows and if column 5 contains a certain word I would like to highlight that cell otherwise leave it alone
Basically (I know what is below is incorrect but i figured it might give a more basic idea of what I'm hoping to accomplish):
Code:
If .Find("searched", column 5) Then
ActiveCell.Offset(0, 5).Interior.ColorIndex = 6
End If
my problem seems to lay somewhere in how I'm using the find function. I've tried messing around with the what:=, where:=, etc's but I cant figure out where I'm losing it and was hoping someone out there could give me a brief explination of the find function for my purpose since i can't seem to tailor any examples i find on the web to work and the help feature also doesn't seem to click in my brain.
Thanks