WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Checking attachments as they arrive

 
   Home -> Office -> Programming VBA RSS
Next:  Delete Folder in Outlook WIll not open or empty  
Author Message
ben

External


Since: Jun 23, 2009
Posts: 2



(Msg. 1) Posted: Tue Jun 23, 2009 7:03 am
Post subject: Checking attachments as they arrive
Archived from groups: microsoft>public>outlook>program_vba (more info?)

Every time one (or more) e-mails arrive I need to be able to check the name
of an attachment and if it contains certain words, we'll just use example
as the word for this, I want to mark it as read and move it to a folder. I
can use either a rule or vba. The problem I'm having with the rule is that I
don't see one that will read the attachment name as new mail arrives. With
vba the only possible way I can see to check attachments is to loop through
each and every e-mail in the Inbox instead of just unread mail. This isn't
quite possible as the user I am creating this for has about 65,000 e-mails in
his inbox over 7 years and would be quite adverse to changing his system. I
can fire the newmail or newmailex event, but I can't find a way to filter
attachments from only Unread mail. Any suggestions? I could probably even use
a .find .findnext loop but can't locate the syntax for unread mail.





--
When you lose your mind, you free your life.
Back to top
Login to vote
ben

External


Since: Jun 23, 2009
Posts: 2



(Msg. 2) Posted: Tue Jun 23, 2009 8:21 am
Post subject: RE: Checking attachments as they arrive [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Anyway, so after a couple more hours of searching I discovered the simple
fact that I can set outlook to run a script from a rule, so now I just have
it running my attachment checking script on each new e-mail as it arrives.


"ben" wrote:

> Every time one (or more) e-mails arrive I need to be able to check the name
> of an attachment and if it contains certain words, we'll just use example
> as the word for this, I want to mark it as read and move it to a folder. I
> can use either a rule or vba. The problem I'm having with the rule is that I
> don't see one that will read the attachment name as new mail arrives. With
> vba the only possible way I can see to check attachments is to loop through
> each and every e-mail in the Inbox instead of just unread mail. This isn't
> quite possible as the user I am creating this for has about 65,000 e-mails in
> his inbox over 7 years and would be quite adverse to changing his system. I
> can fire the newmail or newmailex event, but I can't find a way to filter
> attachments from only Unread mail. Any suggestions? I could probably even use
> a .find .findnext loop but can't locate the syntax for unread mail.
>
>
>
>
>
> --
> When you lose your mind, you free your life.
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support