Using Classic Outlook on Windows for personal email, calendar, and contact management
hi it is liam speer
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
I have a vba macro that is triggered by a rule to sort and save attachments from certain emails.
The attachment save works very well 95% of the time, but occasionally it will not (I don't know why).
So, in order to tell if the script has run or not, I wanted the script to mark an email as read if the script runs, and leave it if it doesn't.
"MItem.UnRead = False"
The macro is also supposed to add a line of text to the top of the email saying where the attachments had been saved.
MItem.HTMLBody = "Email saved to xxx" & MItem.HTMLBody
MItem.Save
Both the mark as read and added text functionally works fine when the macro is run manually, but neither work when the macro is triggered by the rule.
Anyone know why?
Using Classic Outlook on Windows for personal email, calendar, and contact management
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
hi it is liam speer
Dear KSD050,
Good day ,
Thanks for posting in Microsoft Community.
I understand about your requirement and I believe this is something like can be achieve by VB scripts
Yes , I went through your mentioned scenario however I would like to draw your attention here, In order to provide best support to our valuable customers Microsoft has different and dedicated support channel. Please have a look on the below screenshot :
Writing an Outlook Macro Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Additionally while doing research based on your query I found some similar thread, you can also post your query on Microsoft Q&A
NOTE : For your security and privacy , kindly don't mention any email address / password or other confidential information.
We look forward to your response. Thanks for your cooperation.
Sincerely,
Amul | Microsoft Community Moderator
***Note: In the event that you're unable to reply to this thread, please ensure that your Email address is verified in the Community Website by clicking on Your Account Name > "My Profile" > "Edit Profile" > Add your Email Address > tick "Receive email notifications" checkbox > click on "Save".***
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more