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

Message pops when replying to a specific e-mail address



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 25th 06, 08:07 PM posted to microsoft.public.outlook.program_vba
D
external usenet poster
 
Posts: 1
Default Message pops when replying to a specific e-mail address

Hi,
I would like to create a script that pops a message box telling the user not
to reply and if possible disabling the reply button in Outlook.
This is where I'm at so far. I'm getting stuck on the on the If statement
for the email address.
This is what I got:
Function Item_Reply()
Dim strReply
strReply = "Please DO NOT REPLY to this e-mail. Thank You."
If ????? = " then
msgbox strReply, vbOKOnly, "No Reply"
End if
End Function

Am I on the right track?
I cannot get the From: field where the ?????
Much help is appreciated.
Thank you.
--
D
Ads
  #2  
Old October 25th 06, 08:43 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Message pops when replying to a specific e-mail address

Item.SenderEmailAddress (Outlook 2003 and up).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"D" wrote in message
...
Hi,
I would like to create a script that pops a message box telling the user
not
to reply and if possible disabling the reply button in Outlook.
This is where I'm at so far. I'm getting stuck on the on the If statement
for the email address.
This is what I got:
Function Item_Reply()
Dim strReply
strReply = "Please DO NOT REPLY to this e-mail. Thank You."
If ????? = " then
msgbox strReply, vbOKOnly, "No Reply"
End if
End Function

Am I on the right track?
I cannot get the From: field where the ?????
Much help is appreciated.
Thank you.
--
D



 




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
Force encoding when replying or forwarding message Fluke Outlook - General Queries 1 October 19th 06 10:15 PM
OUTLOOK SIGNATURE DOUBLE SPACED WHEN REPLYING OK WHEN NEW MESSAGE PIPERHAMMY Outlook - General Queries 1 September 25th 06 02:45 PM
? posting an item from Address Book [Global Address List] to a specific form and folder luckily Outlook - Using Forms 3 September 11th 06 11:01 PM
original message changes when replying/forwarding oren Outlook - General Queries 0 August 1st 06 07:11 PM
My outlook just pops up and checks mail. How do I stop this? MHR Outlook - Installation 1 May 3rd 06 05:22 PM


All times are GMT +1. The time now is 11:32 AM.


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.