Hi, I am using the following code but it just copies the date out as a real number, not as a date. When I double click on the cell the number becomes a date... how do I make into a date automatically?
AGE_COLUMN is a constant with the correct column number (8).
dteInstallDate = "" & recAccess!Install_Date
intDate = DateDiff("m", dteInstallDate, Now()) \ 12
ActiveSheet.Cells(intRowCount, AGE_COLUMN) = intDate
Range("I" & intRowCount).Select
Selection.NumberFormat = "m/d/yy h:mm"
Webmaster of The EPICentre and owner of Minatures Online. (10% off all VOID goods!)
AGE_COLUMN is a constant with the correct column number (8).
dteInstallDate = "" & recAccess!Install_Date
intDate = DateDiff("m", dteInstallDate, Now()) \ 12
ActiveSheet.Cells(intRowCount, AGE_COLUMN) = intDate
Range("I" & intRowCount).Select
Selection.NumberFormat = "m/d/yy h:mm"
Webmaster of The EPICentre and owner of Minatures Online. (10% off all VOID goods!)