There is an alternative method into this: instead of using SelColor etc. you can instead manipulate TextRTF & SelTextRTF. RTF is a syntax of it's own for marking up text color. However, going this route is on the more advanced side because you have to make sure your output is correct.


akhileshbc: Replace is an exception in VB6's functions, it always takes and returns a String, there is no Variant version of it.