I tried this simple script:
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Range("B16").Value
Case ""
Range("A23").Value = ""
Case "Inbound"
Range("A23").Value = ""
Case "Outbound"
Range("A23").Value = "Surcharge"
End Select
End Sub
I need to insert a date range. The date is in cell D16. If this date is between 15may2021 and 31oct2021 the combination of this date range and
Case "Outbound"
would return:
Range("A23").Value = "Surcharge"
How can I achieve this?
thanks, IR