keaveneydan
Board Regular
- Joined
- Apr 29, 2014
- Messages
- 144
Hi, there are lots of posts about this but I just can't get it to work. I want my macro to just end wth no further action if cancal is chosen on my input box. Please help.
Code:
Sub Auto_Open()
Dim dt As Date
dt = Application.InputBox("Enter the valuation date in the format dd/mm/yyyy")
dt = Format(dt, "dd/mmm/yyyy")
If dt = vbNullString Then
Exit Sub
End If
Worksheets("Net Assets").Range("C3").Value = dt
Call UpdateValuationDates
Sheets("Net Assets").Activate
End Sub