4,374 questions
Try executing a code like this:
Application.OnTime "22:00", "MyProcedure"
Also add a module containing this procedure:
Public Sub MyProcedure()
MsgBox "Please stop working and go home"
End Sub
Probably the OnTime function can be called automatically from the Open event of workbook.