Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script in Outlook

Status
Not open for further replies.

halem2

IS-IT--Management
May 7, 2003
29
US
hi folks:

I'm new to VB and I'm trying to write a script in Outlook 2000 that will prompt me when a msg arrives and it has a receipt requested. this is what i got

it fails on the first SET

Sub Chk4Receipt()
Set NewMail = ThisOutlookSession.MailItem(ReadReceiptRequested)
If NewMail = True Then
PollRest 'a user form pops up here
End If
End Sub

any help is welcome. thanks you



****
Problems are nothing more than an opportunity for improvement
;-P hehehehe
 
First, you have to understand how to add event handlers to Outlook.
As a very first starting point search the Object Browser (F2) for newmail and press the F1 key.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top