Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following is an example of some code that I am using in a process
to make charts. While troubleshooting a date calculation error, I found out that "lastdate" returns a value of 12:00:00 AM in the intermediate window. Lastdate is dim'd as public lastdate as date. ans = MsgBox("Do you want to lock in a review period end date?", vbYesNo) If ans = vbYes Then 'lock in a date for the end of review period for subsequent runs LastDate = InputBox("What date (MM/DD/YYYY) will mark the end of the review periods?", , "10/1/2006") Else: LastDate = CDate(Now()) 'not sure what CDATE does End If What am I doing wrong that would cause this to indicate a time instead of a date as I entered? TIA |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide Intermediate Levels in Date Dimension | Excel Discussion (Misc queries) | |||
Complex Time Window / date based calculation | Excel Worksheet Functions | |||
formulas using date/time formats returning #value | Excel Discussion (Misc queries) | |||
Calculating days & time left from start date/time to end date/time | Excel Worksheet Functions | |||
clear intermediate window automatically | Excel Programming |