View Single Post
  #1  
Old August 12th 08, 10:08 PM posted to microsoft.public.outlook.program_vba
AzDayton
external usenet poster
 
Posts: 3
Default Filter to Mark Completed

(Outlook 2003)

Hi. I'm trying to filter incoming mails which are notifications only, and
are completed before I ever see them. I'd like to move them to a folder,
flag them, then have them marked completed, all without my having to see it
happen.

I can do most of this using the Rules and Alerts. However, there is no
"Mark Completed" option. So I tried the "Run a Script" option.

Here's the "script" that I THOUGHT should work, but doesn't:
=======================================
Sub FlagComplete(Item As Outlook.MailItem)
Item.FlagStatus = olFlagComplete
Item.Save
End Sub
=======================================

Any ideas on what I'm doing wrong? I'm pretty new to VBA, but it seemed
pretty straightforward. The script DOES run, it just doesn't seem to do what
I want it to. I've got it attached to the ThisOutlookSession object.

Thanks in advance!

- Dayton - Tue. 08/12/2008 @ 13:06:38
Ads