Hello All,
About two months ago I was helping someone who is blind create a VBA Script that will automate a complex function on specific incoming messages.
In putting together the instructions I believe I have skipped a step that he reminded me about: that there is some sort...
Thanks so very much. I'm going to paste the step-by-step instructions I just put together for my client in case anyone needs to do this. It's written with a focus on keyboard shortcuts since he's blind and cannot use the mouse, but anyone who can see will easily be able to determine the...
Diane,
The following is an SOS call!!
I know that one of your posts on slipstick covers how to turn on the VBA regular expression processing library, and you directed me to that a while back, but I cannot for the life of me find the page via search or my own web history...
But, Diane, my very own example shows that "looks for words in the body" doesn't work unless you take explicit steps to make sure that the asynchronous population of the MailItem members by Outlook has been given sufficient time to populate .Body before you test anything using it.
The entire...
These days most IMAP users expect that message bodies will be automatically downloaded for offline use for messages newer than some set limit that gets set in most clients, say 14 days.
I do see what you're saying, though. If it's the presumption by Outlook that a message body will not be...
So it's here for future readers I am using Gmail via IMAP access to receive the messages that are being checked.
I still find it amazing that Outlook's own code does not work in such a way that it is ensured that all pertinent members of a MailItem object are not prepopulated prior to its being...
By the way, and unrelated to the problem now solved, what is it that defines the variables that one should do the Set X = Nothing statement(s) for prior to exiting a subroutine?
Based on what I've observed in various code samples I presume it's if the variable is for holding an object or...
Diane,
First and foremost I want to again offer my sincerest thanks for all you have done to assist me through debugging this. I have been calling upon you as well as folks on stackoverflow.com and social.technet.microsoft.com and between all of us a solution has been found.
It...
Final update for the day. Since the issue appears to be with the value of the Body (and I decided to check HTMLBody, too), I added the following code immediately before the regular expression test:
If IsNull(olMail.Body) Then
MsgBox "The message body is null!!"
Else
MsgBox "BODY: "...
Diane,
I get the chime, but nothing else, either, when the script is actually being triggered by an Outlook Rule on an incoming message. I get the chime, tada (I've added), and train whistle if I make the rule run against messages in the inbox or use TestLaunchURL to pass a specific...
Diane, I haven't gotten to that yet, but, read on . . .
After lots of additional testing I have determined that the OpenLinksMessage subroutine is being called, but if it's being called out of the Outlook rule the IF Reg1.test(olMail.Body) test is coming back false when I absolutely know that...
It's in "ThisOutlookSession." I have also had another assistant suggest, as a debugging step, to create a subroutine that does nothing but pop up a message box with the sender's e-mail address as it's action. If I substitute that subroutine for OpenMessageLinks in the rule, whether I leave...
Diane,
Still "no dice" on the script itself being invoked, which is clearly where the problem lies. When I had my Outlook rule set up to play a sound and invoke the script, e.g.,:
When a new message comes in with either one of the gmail addresses specified for the sender, chord.wav...
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.