braindiesel
Well-known Member
- Joined
- Mar 16, 2009
- Messages
- 571
- Office Version
- 365
- 2019
- 2010
- Platform
- Windows
I am trying to test these 4 lines
but the year isn't working.
It seems to be adding the confirmmonth to the confirmyear
Your help is appreciated
Code:
confirmMonth = InputBox("What month (number) are they starting the lease? (1=January, 12 = December)", "Month Start", Month(Date) + 1)
confirmYear = InputBox("What year are they starting the lease?", "Year Start", Year(Date))
confirmLength = InputBox("What is the length (in months) of the lease? (1=month to month, 12 = annual)", "Length of Lease")
MsgBox DateSerial(confirmYear, confirmMonth + confirmLength, 1)
It seems to be adding the confirmmonth to the confirmyear
Your help is appreciated