Hello
Please help me solve the problem using VBA (Excel 2007)
I have a range in which some data is entered in some cells. I would like the macro to search for cells whose values begin with "HIGH"
E.g
FROM HIGH 500
FROM HIGH 501
FROM HIGH 502
FROM HIGH 503
The attached macro works for me but if in the IF loop I specify the exact value of the cell and not just part of the text
I know how to do it using conditional formatting but the code is part of a more complex macro and I would like to implement it in VBA code
Thank you in advance for your help
Regards
Zbyszek
Please help me solve the problem using VBA (Excel 2007)
I have a range in which some data is entered in some cells. I would like the macro to search for cells whose values begin with "HIGH"
E.g
FROM HIGH 500
FROM HIGH 501
FROM HIGH 502
FROM HIGH 503
The attached macro works for me but if in the IF loop I specify the exact value of the cell and not just part of the text
Sub polaczone()
For Each kom In Range("l4:l3000")
If kom.Value = "Z WYS" Then
kom.Interior.Color = RGB(255, 0, 0)
End If
Next kom
End Sub
I know how to do it using conditional formatting but the code is part of a more complex macro and I would like to implement it in VBA code
Thank you in advance for your help
Regards
Zbyszek