time to run code

  1. pedie

    Need a little help with my code: Run my code if time falls in category. Thank you for helping.

    If time in Cells(1, 1) falls between 1 PM - 1:45 AM next day then call macro1 else no. Sub timeTRY() If Cells(1, 1).Value < "12:00" Then MsgBox "Time < 12 PM :)" Exit Sub Else Call Macro1 End If End Sub

Some videos you may like

This Week's Hot Topics