Hi milkerickson,
I changed my code slightly as under:
Private Sub A1001()
Dim currep_Date As Date, lastrep_Date As Date
currep_Date = Application.InputBox("Enter Current Reporting Date", "Enter a Date", "DD/MM/YYYY")
lastrep_Date = Application.InputBox("Enter Last Reporting Date", "Enter Date", "DD/MM/YY")
Worksheets("Test").Range("B1").Value = currep_Date
Worksheets("Test").Range("B2").Value = lastrep_Date
I tested your code and appreciate that it loops back to the user to put the date input but it does not capture the last reporting date. I would also like to know if we can set up an input box in such way that the user can move backward and forward to correct the input data?
Thank you
Roshan Shakya
Bookmarks