Hi!
I have a userform that has several textboxes and checkboxes. Some of the textboxes read and display dates from certain cells.
I have the checkboxes conditionally formatted based on the data in the textboxes. However it doesn't seem to be reading the
dates as a value. Here's an example of my issue to make it clear for you:
txtBox 1 = 01Sep2009
txtBox 2 = 01Oct2009
What I need is for the checkbox text colour to change from black to red if txtBox1 < txtBox2.
Here's the code I have in place:
It doesn't work when there's dates in the txtBox's, but if I use simple numbers (i.e. txtBox1 = 11 and txtBox2 = 22) then it worksPlease Login or Register to view this content.
just fine. Maybe VBA isn't reading the dates as numbers, but as text? The formatting of the cells it's reading from are in dates.
Any ideas
Cheers,
Bookmarks