Calculate End Date using Excel VBA
EDATE returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date). Use EDATE to calculate maturity dates or due dates that fall on the same day of the month as the date of issue.
Function Get_The_EndDate()
Dim WrkMonths As Integer
Dim StartDate As Date
Dim EndDate As Date
StartDate = Now
EndDate = WorksheetFunction.EDate(StartDate, 3)
MsgBox "End Date of the Project is := " & EndDate
End Function
The above will work in Excel 2007 only
Showing posts with label Calculate End date using VBA. Show all posts
Showing posts with label Calculate End date using VBA. Show all posts
Sunday, March 02, 2008
Subscribe to:
Posts (Atom)
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.