Sorry about the late reply,had to run an unexpected errand
Dim FutureYr As Date
this did not fix it:
FutureYr = Format(DateValue(FutureYr), "mm-dd-yyyy")
Subodh Tiwari (Neeraj)
Use MsgBox FutureYr or Debug.Print FutureYr to see the value in immediate window. Do you see it in desired format?
How do you know that you don't get it in right format? What do you do next with FutureYr, do you place its value on the sheet or what?
If you are placing the value of FutureYr on the sheet, that might not work as sheet's default date separator will take over.
isnoend2001
ASKER
Have already used debug, don't know why vb ignores the format.
Have overcame the issue by converting the date to a string using cstr
Dim FutureYr As Date
this did not fix it:
FutureYr = Format(DateValue(FutureYr)