outlook startup code does not work -
i have got code in "thisoutlooksession"
private sub application_startup() set objinspectors = outlook.inspectors dim onamespace outlook.namespace dim myrecipient outlook.recipient dim folder outlook.mapifolder set onamespace = outlook.getnamespace("mapi") msgbox ("startup works")
and quite lot of code....
but not start, not msgbox "startup works" @ all. if start sub manually f5, goes fine.
any ideas, why not work?
thanks max
appears unusual:
set onamespace = outlook.getnamespace("mapi")
try:
set onamespace = application.getnamespace("mapi")
Comments
Post a Comment