EnableEvents, Outlook equivalent

Status
Not open for further replies.

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
1st an aside. When I searched for "EnableEvents" as an unregistered user, there were results from a Forum search. However, as a registered users, search says there are No results.
Back to the topic, in some other MS Office 2010 products (eg Excel), EnableEvents can be used in VBA to avert mayhem caused by changing something that a new event might also access. In Outlook there is a DoEvents, which suggests that it's model assumes an event handler may cause mayhem, and blocks events while in the handler.
Background. MSWin8.1, a user with multiple .pst and one .ost (Hotmail Connector) datafile. A few rules in effect at the UI level, but that mechanism is not fine-grained enough to handle inbound emails from sources that insist on sending unwanted advertising that is quite similar to paid-for content. Hence, somewhat involved processing in ItemAdd event handlers.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
... in some other MS Office 2010 products (eg Excel), EnableEvents can be used in VBA to avert mayhem caused by changing something that a new event might also access. In Outlook there is a DoEvents, which suggests that it's model assumes an event handler may cause mayhem, and blocks events while in the handler.
...
Forgot to mention why I'm wondering. OLK2010 seems to be causing errors in all the .pst and .ost data files, fairly frequently. Doesn't seem to impact using Outlook, but is annoying to be ScanPST often; especially since multiple passes are required on each data file. Worse, the main .pst canNot be entirely cleaned up, since after two passes, ScanPST fails to display a Repair option.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I'll look into the search problem. On the pst, repeated errors usually mean something is accessing the pst files (besides outlook). Third party sync software is the frequent culprit, a failing hard drive can also cause errors. You really shouldn't run scanpst all the time, just to see if there are errors - it's always going to have a few errors. When outlook loads it will check the pst and fix the errors, but if there are a lot, it will tell you to run scanpst.

For the spam filtering, you can use an itemadd macro or a run a script rule, if the junk filter or standard rules aren't sufficient.

I'm not sure I'd say doevents or enable events purpose is to avert mayhem...


Sent from my iPad using Tapatalk
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
... Third party sync software is the frequent culprit, a failing hard drive can also cause errors. ...
HardDrive is fairly new, and diagnostics indicate it is fine. No 3rd-party sync sw, but several 3rd-party COM Addin-Ins: 1) Classic Menu, 2) Redemption Helper.
I did notice several COM Add-Ins that are not in use, so will disable: 1) Microsoft Exchange Add-in, 2) Microsoft Outlook Social Connector, 3) Microsoft SharePoint Server Colleague Import, 4) OneNote Notes about Outlook Items.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
HardDrive is fairly new, and diagnostics indicate it is fine. No 3rd-party sync sw, but several 3rd-party COM Addin-Ins: 1) Classic Menu, 2) Redemption Helper.
I did notice several COM Add-Ins that are not in use, so will disable: 1) Microsoft Exchange Add-in, 2) Microsoft Outlook Social Connector, 3) Microsoft SharePoint Server Colleague Import, 4) OneNote Notes about Outlook Items.
The 4 from microsoft won't cause problems but if you aren't using those features, they can remain disabled. Classic menu shouldn't cause problems but I'm not sure how it is integrated either. Whatever installed redemption helper could be the cause, but it really depends on what installed it.

Scanning the pst using antivirus software can also cause errors in the pst.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
DoEvents does not block any events, it's rather the opposite. See some details here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents(v=vs.110).aspx

In some cases a DoEvents might be necessary, however, if you don't know what you do it rather adds to any mayhem as it can confuse the usual order of the events.

I only use DoEvents where something has been done in an event handler that seems likely to cause a DeadlyEmbrace. It would be better to determine that such a condition can occur, but that can be tricky.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
The 4 from microsoft won't cause problems but if you aren't using those features, they can remain disabled. Classic menu shouldn't cause problems but I'm not sure how it is integrated either. Whatever installed redemption helper could be the cause, but it really depends on what installed it.

Scanning the pst using antivirus software can also cause errors in the pst.
I installed Redemption helper, to be able to look at mail item elements that Outlook security model blocks access to.
As to antivirus, the Win8.1 computer where the issues occur only uses Windows Defender (that MS says replaces MS Security Essentials, after Win7).
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
The Redemption Helper is an addition to the Redemption. You don't need the first in order to use the latter.

For testing I'd also disable classic menu.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
The Redemption Helper is an addition to the Redemption. You don't need the first in order to use the latter.

For testing I'd also disable classic menu.
Classic Menu 6.0 got disabled inadvertently by installing MS EMET 5.1 . Update to Classic Menu 8.0 for Outlook 2010 resolved that problem.
 

NanooVisitor

New Member
Outlook version
Outlook 2010 32 bit
Email Account
I only use DoEvents where something has been done in an event handler that seems likely to cause a DeadlyEmbrace. It would be better to determine that such a condition can occur, but that can be tricky.
Turned out that, whatever had earlier implied a need for DoEvents, had been ObE. Not yet clear whether pulling DoEvents has cleared up causing errors in the *.pst and *.ost. However, it did resolve one oddity in the navigation pane, where back-tracking (<Alt><lt-arrow>) would not always retrace through folders visited -- DoEvents had likely been implicated in corrupting a list of folders that had been visited.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Excel vba code to manage outlook web app Using Outlook 8
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 0
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
P Outlook 2013 Calendar Archiving Using Outlook 0
D Connecting Gmail to Outlook 365 - My Setup not working Using Outlook 1
K Outlook tasks formatting Using Outlook 4
G Retention Policy for Outlook.com Deleted Items folder Using Outlook 0
S Problem Checking the available stores in my Inbox (Outlook VBA) Outlook VBA and Custom Forms 0
V Is it possible to collect statistics from Outlook forms? Outlook VBA and Custom Forms 1
Z Outlook 365 delete reminder you can’t make change to contents of this-read only folder Using Outlook 4
H I have no profile listed for Outlook! Using Outlook 9
S Outlook VBA How to adapt this code for using in a different Mail Inbox Outlook VBA and Custom Forms 0
S Macro for Loop through outlook unread emails Outlook VBA and Custom Forms 2
D Outlook 2016 how to use gmail account as source account for outlook 365 Using Outlook 9
Horsepower Contacts added from iPhone don't show up in Outlook Using Outlook 1
F Microsoft Outlook Connector 14.0.6123.5001 - Help! Using Outlook 6
A Outlook (and Office) 2019 Logging Using Outlook 2
glnz Can Word Normal.dotm interfere with Outlook? Office 2016 Using Outlook 5
D Outlook 2016 and Earlier with Office365 in 2021 Using Outlook 3
glnz Moving from Outlook 2003 to MS365 Outlook - need basics Using Outlook 4
L Outlook saved template function too limited Using Outlook 2
C Looking for feedback on new Outlook Add-in Using Outlook 0
M Outlook on 3 Computers Shows Different Total Items on Same Account Using Outlook 3
S Outlook email to configure setup for each mail Outlook VBA and Custom Forms 1
witzker print-list-of-outlook-folders with sort posibility Outlook VBA and Custom Forms 7
witzker Open Contact missing in Outlook 2019 Using Outlook 2
D.Moore VB script to Digitaly Sign newly created outlook message Outlook VBA and Custom Forms 2
B Outlook 2016 Retail C2R keeps logging since update? Using Outlook 0
M outlook 365 trying to finish my sentences Using Outlook 0
D Outlook Address Book Using Outlook 0
B Emails get stuck in Outbox of Gmail IMAP in Outlook for Windows Using Outlook 0
C Not sync folders not found after MS Outlook 365 update Using Outlook 1
V Outlook 2016 Does Outlook-2016 (64 bit) work with iCloud for Windows ? Using Outlook 5
R Microsoft Outlook 2016 - Gmail not sending, asks for password for SMTP, tried different ports Using Outlook 23
V Outlook 2016 Outlook-2016 and iCloud for Windows - Problems Using Outlook 9
O VBA Outlook Message Attachment - Array Index Out of Bounds Outlook VBA and Custom Forms 0
K Imap PC Outlook + Android phone Using Outlook 1
GregS Outlook 2016 Move Outlook to new computer? Using Outlook 4
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 1
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 2
C All Gmails don't show in Outlook 2019 Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
U Outlook 2016 Outlook 2016 sender name Using Outlook 1
T Compuserve, Yahoo, Oath2 and Outlook 2013 Using Outlook 4
E Work uses live accounts for emails for all employees. Can we use the outlook calendar to give the employees an universal work schedule calendar? Using Outlook 1
witzker Macro to move @domain.xx of a Spammail to Blacklist in Outlook 2019 Outlook VBA and Custom Forms 7
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
P outlook 2008 search box criteria couldn't be saved Using Outlook 2

Similar threads

Top