A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 or 2007 autoexec macro to check for disabled items



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 2nd 08, 10:42 PM posted to microsoft.public.outlook.program_vba
Sue
external usenet poster
 
Posts: 98
Default Outlook 2003 or 2007 autoexec macro to check for disabled items

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  
Old December 3rd 08, 03:19 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2003 or 2007 autoexec macro to check for disabled items

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  
Old December 8th 08, 05:50 PM posted to microsoft.public.outlook.program_vba
Sue
external usenet poster
 
Posts: 98
Default Outlook 2003 or 2007 autoexec macro to check for disabled item

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.