![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Is there a way to write a macro that runs when Outlook is started? It would
check for any disabled items, perhaps to see if there is a resiliancy key created in the registry editor. I'm wide open to suggestions, as the question I posed is kind of a shot in the dark for me. Thank you. |
Ads |
#2
|
|||
|
|||
![]()
You can put the code in ThisOutlookSession and call it from the
Application_Startup() event handler available there in that module. Drop down the General drop-down at the top of the window when in ThisOutlookSession and select Application then select the Startup event from the Declarations drop-down to create a skeleton for that event handler. It's really not a good idea however to do what you intend. You can't really tell from the registry resiliency key which addin or addins are disabled so if you delete the key entirely you end up re-enabling addins that crashed or crashed Outlook. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Sue" wrote in message ... Is there a way to write a macro that runs when Outlook is started? It would check for any disabled items, perhaps to see if there is a resiliancy key created in the registry editor. I'm wide open to suggestions, as the question I posed is kind of a shot in the dark for me. Thank you. |
#3
|
|||
|
|||
![]()
Thank you Ken -
Your advise is well taken. I appreciate the feedback. Sue "Ken Slovak - [MVP - Outlook]" wrote: You can put the code in ThisOutlookSession and call it from the Application_Startup() event handler available there in that module. Drop down the General drop-down at the top of the window when in ThisOutlookSession and select Application then select the Startup event from the Declarations drop-down to create a skeleton for that event handler. It's really not a good idea however to do what you intend. You can't really tell from the registry resiliency key which addin or addins are disabled so if you delete the key entirely you end up re-enabling addins that crashed or crashed Outlook. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Sue" wrote in message ... Is there a way to write a macro that runs when Outlook is started? It would check for any disabled items, perhaps to see if there is a resiliancy key created in the registry editor. I'm wide open to suggestions, as the question I posed is kind of a shot in the dark for me. Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OneNote Notes about Outlook Items Add-in disabled - can't enable | Lawrence | Outlook - Installation | 1 | June 19th 08 10:15 AM |
Macro in project is disabled | mrbalaje | Outlook and VBA | 1 | June 10th 07 01:44 PM |
autoexec or startup with Outlook | Jon Rowlan | Outlook and VBA | 3 | May 23rd 07 11:07 PM |
Macro functions disabled? | Sebastian | Outlook and VBA | 2 | January 18th 07 09:01 AM |
AutoExec Macro for an .oft file? | Jack G | Outlook and VBA | 3 | June 30th 06 03:11 PM |