Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi All!
I have a little comparison on a userform:
Where both textbox72 and Cells(ActiveCell.Row, "AJ").Value are dates.
The problem is that it is returning as false even when the dates are the same.
I've tried putting Val(textbox72.value) as you would for a number but same result.
What do I need to change?
Thanks in advance.
I have a little comparison on a userform:
Code:
If TextBox72.Value = Cells(ActiveCell.Row, "AJ").Value Then
msgbox "Dates are the same"
else
msgbox "Dates are different"
end if
Where both textbox72 and Cells(ActiveCell.Row, "AJ").Value are dates.
The problem is that it is returning as false even when the dates are the same.
I've tried putting Val(textbox72.value) as you would for a number but same result.
What do I need to change?
Thanks in advance.