+ Reply to Thread
Results 1 to 4 of 4

Outlook Macros disable themselves

  1. #1
    Forum Contributor
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit
    Posts
    173

    Outlook Macros disable themselves

    Hi,

    I leave outlook open 24/7 on a machine so that it can process emails received during the night (It receives data files during this time which are then processed ready for use at a more sociable time).

    I used to use rules to run a script in Outlook 2007. However in later versions these options were hidden by default and banned by our IT because the option to enable them was termed "Enable unsafe rules".

    As a result I started using an event listener (code below). This worked well until fairly recently where it now seems that the macros disable themselves after a period of in activity which requires a re-start to correct.
    To counter this I have had to create a scheduled task to close and re-open outlook periodically during the night. This solves the problem but isn't ideal and doesn't address or explain the underlying cause.

    Has anyone else experienced this or have any suggestions?

    Code:
    Please Login or Register  to view this content.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Outlook Macros disable themselves

    what do you mean that they are disabled after ""some time""? do you see an error when the code tries to run? does that actual SETTING change in the options menu? how do you know they become disabled after ''x'' hours of leaving the program open?

  3. #3
    Forum Contributor
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit
    Posts
    173

    Re: Outlook Macros disable themselves

    There's no error or change to the macro settings which are Enable All. I first noticed an issue because emails received overnight were not being processed.

    What seems to happen is that the event listener stops listening, although it's difficult to pinpoint the exact time this occurs. I tested this by playing a sound file in the ItemsAdd event. After leaving Outlook open overnight a sound was no longer played when emails were received.

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Outlook Macros disable themselves

    well those were the only ideas I had. sorry. I'm out of them. it sounds like a unique issue. just thought I'd give it a shot.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I Disable Macros on a File where Macros were Previously Enabled?
    By Alves76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 10:26 AM
  2. Popup msg to disable while sending Email through outlook
    By yogananda.muthaiah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2012, 01:40 PM
  3. Disable Outlook Security Prompt
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-14-2011, 06:09 AM
  4. [SOLVED] Can i Disable Outlook Security Warning
    By Webtekr in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2009, 05:30 AM
  5. Enable/Disable Macros when no Macros are Present?
    By Slothrop in forum Excel General
    Replies: 9
    Last Post: 07-29-2008, 02:26 PM
  6. How to disable Outlook Message while Mailing in a macro?
    By tushar@excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-07-2008, 09:03 AM
  7. Disable Warning Message from Microsoft Outlook in Excel VBA
    By Harvey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2005, 07:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1