I have the following code below
I would like the input box to appears to input the date only if the date in A3 on sheet BR1 +30 < date
, otherwise exit sub
It would be appreciated if someone could amend my code
I would like the input box to appears to input the date only if the date in A3 on sheet BR1 +30 < date
, otherwise exit sub
It would be appreciated if someone could amend my code
Code:
Sub Date_Input()
Sheets("Sales").Select
Dim MyDate As String
Range("a3").Select
If Range("A3") + 30 > Now() Then
Exit Sub
Else
End If
ActiveCell.FormulaR1C1 = InputBox("Enter the current Month and year for eg June 2006")
Sheets(1).Select
End Sub