Hello there people,
I'm new on the forum and hope to learn some new excel tricks. When i was googling i found this post : http://www.excelforum.com/excel-prog...ell-value.html
I'm looking for the same thing, this great macro by Leith Ross looks for the word "buy" in kolom A starting at A2. Now this all works fine until i change the value of the colum into a if statement : =IF(C2>0;"buy";"NR"). See the attachment on what i mean.
If i run the macro now i get error 91 : objectvariable or blockvariable With is not set.
I can work around it, if i hardcode the A2 with "buy" and then A3 etc with the if statement i works for some strange reason. But there must be a smarter way of doing it, that's why i came here .
Hope you guys can help me . And i hope Leith Ross dont mind if use his code, it's super .
Arjan
Bookmarks