Hi again Jo,
Many thanks for your feedback.
Ok on using the Change event rather than the LostFocus event to trigger the colour change. Whenever possible I avoid using the Change event for the simple reason that the event is triggered each time any change is made to any character displayed in the TextBox rather than when all changes have been completed, but in some situations that's exactly what's needed.
As far as your second point is concerned (it's interesting to see that you use the worksheet CodeName - good for you!!
) it seems that Excel VBA finds a statement such as "Case Is < wksThresholds.Range("B1").Value" to be "too complex", as demonstrated by the following code:
The attached workbook uses the following version of the previous routine, and it seems to work:
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks