A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook to read emails and automate to do some work



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 27th 07, 07:04 PM posted to microsoft.public.outlook.program_vba
Chirag Chokshi
external usenet poster
 
Posts: 1
Default Outlook to read emails and automate to do some work

Hi,
I want to know how can I write a macro in Microsoft Outlook to read emails
from a specific user, and when the email comes, I want to search for a
specific button or link in the email's body; then it automatically clicks
that link or button. After clicking the button the email should go into
delete folder and the other mails are read same way.
Please help me. You can also email me on
Ads
  #2  
Old July 3rd 07, 05:32 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Outlook to read emails and automate to do some work

Use the MAPIFolder.Items.ItemAdd event for the Inbox to trap incoming
e-mails, and use MailItem.SenderEmailAddress or MailItem.SenderName to detect
messages from a specific person within that event. It's up to you though to
parse the MailItem.HTMLBody property to look for specific A tags with URLs.
However, you will not be able to trap when the user clicks on a link in an
e-mail.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Chirag Chokshi" wrote:

Hi,
I want to know how can I write a macro in Microsoft Outlook to read emails
from a specific user, and when the email comes, I want to search for a
specific button or link in the email's body; then it automatically clicks
that link or button. After clicking the button the email should go into
delete folder and the other mails are read same way.
Please help me. You can also email me on

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't read some emails [email protected] Outlook - General Queries 1 June 8th 07 02:16 AM
Automatic completion of emails and nicknames doesn't work in Outlook 2002 Svilen Pachedzhiev Outlook - General Queries 9 March 27th 07 01:47 PM
stop emails from being deleted after read markssme Outlook - Installation 2 January 17th 07 09:53 PM
Automate Outlook contacts with emails and other activities Jim Fitz Outlook - Using Contacts 1 April 1st 06 09:11 PM
The links in emails do not work in outlook 2000 ? Any Ideas ? ddanmale Outlook - General Queries 3 January 25th 06 10:43 PM


All times are GMT +1. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.