Have this code
Code:
Function HighlightText(high,text)
highL ="<FONT style='BACKGROUND-COLOR: yellow'>" & high & "</FONT>"
HighlightText = replace(text,high,highL)
End Function
to highttext on page
aaa= HighlightText("ba","ba bab ab") works
aaa= HighlightText("ba","Ba Bab ab") does not works
because of the caps
Is there a easy fix for this
Think Im having a bad day here can't think of the answer.