Below I have VBA for a user to enter a date and for that to be entered into a specific cell on the active sheet. I do not have a lot of experience with Or statements.
I want to add an "or" path for a checkbox to be ticked, if this is the case then yesterday's date; formula =today()-1 would be entered in the cell instead. Disallow both a value to be entered and the check box to be ticked.
I want to add an "or" path for a checkbox to be ticked, if this is the case then yesterday's date; formula =today()-1 would be entered in the cell instead. Disallow both a value to be entered and the check box to be ticked.
Code:
Sub Which Date
Dim QtyEntry As Integer
Dim Msg As String
Msg = "Enter Specific Date dd/mm/yy"
QtyEntry = InputBox (Msg)
ActiveSheet.Range("B2").Value = QtyEntry
End Sub