When I use the first code so that it only works for the first item in my inbox, It is working consistently every time that i double click on the first email.
Also, I am assuming that you mean to write it such as this....
Option Explicit
Public WithEvents myItem As Outlook.MailItem...
each mailbox should have an associated email address ( eg mailbox 1 being only emails to emailaddress1@domainname.com )...
Under the condition you are using VB SCRIPT vs VBA you might also try something like this...
Dim objOutlook
Dim objNamespace
Dim objMailbox
Set objOutlook =...
Hello, I am having trouble with my events in outlook, not sure if I am missing something or not.
I am trying to trigger a macro when the selected mail item in outlook is opened.
Using the code below, I can successfully trap the event and display the msgbox when double clicking the first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.