I have been trying to use the ontime method in outlook and keep getting error 438, Object does not support this property or method. I coppied the code into excel and it works fine. Does anyone know why it would work in excel but not in Outlook?
'Code placed in UserForm:
Application.OnTime Now + TimeValue("00:00:15"), "SayHello"
'Code placed in Module:
Public Sub SayHello()