configuring outlook 2010 through macros

Not open for further replies.

sahil vij

I am working on outlook 2010.I have to configure the outlook for autoreply through macros for some users.Can anyone send the some document regarding the configuration of outlook.

Thanks and Regards,

Sahil Vij

Infosys Technologies Limited,


Jennifer Zhan


See here:

You may try the code provided by elshonno, I quote it here:

Sub CustomMailMessageRule(Item As Outlook.MailItem)

Dim Msg As Outlook.MailItem
Dim MsgReply As Outlook.MailItem
Dim strGreetName As String
Dim lGreetType As Long
Dim strSubjectLine As String

' set reference to open/selected mail item
On Error Resume Next
Select Case TypeName(Application.ActiveWindow)
Case "Explorer"
Set Msg = ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set Msg = ActiveInspector.CurrentItem
Case Else
End Select
On Error GoTo 0

If Msg Is Nothing Then GoTo ExitProc

strSubjectLine = Msg.Subject

On Error Resume Next
lGreetType = 1
On Error GoTo 0

If lGreetType = False Then GoTo ExitProc

If lGreetType = 1 Then
strGreetName = Left$(Msg.SenderName, InStr(1, Msg.SenderName, " ") + 20)

GoTo ExitProc
End If

Set MsgReply = Msg.Reply

With MsgReply
.Subject = "Re " & Msg.Subject
.HTMLBody = "<span style=""font-family : verdana;font-size : 10pt""><p>Hello " & strGreetName & " <p><p><p> Thank you for contacting the Support Centre <p><p><p> Your email has been received with the description of: " & strSubjectLine & " </p></span>" & .HTMLBody


End With

Set Msg = Nothing
Set MsgReply = Nothing
End Sub
Not open for further replies.
Thread starter Similar threads Forum Replies Date
G Need help configuring a PRF for Outlook 2010 and 2013 Using Outlook 0
M Configuring Outlook 2010 Using Outlook 5
J Exchange 2010 RTM + Configuring the Change Password Feature in Outlook Web App Exchange Server Administration 2
Diane Poremsky Configuring SmartPhones to use EAS to New Articles 0
Diane Poremsky Configuring an account in Outlook New Articles 0
Diane Poremsky Configuring a Manual Send and Receive in Outlook New Articles 0
V Configuring a new IMAP email account in Outlook 2007 Using Outlook 4
G Configuring Outlook 2003 for Gmail with both pop3 & imap4 accounts Using Outlook 1
V iCloud Configuring in Outlook (updated) Using Outlook 1
B Microsoft office outlook 2007 showing configuring outlook accounts for hours Using Outlook 6
M Autodiscover not configuring Outlook Anywhere Using Outlook 10
S Error while trying for Configuring OUT Of Office from outlook client Exchange Server Administration 4
H Too Many Names error when configuring new account in Outlook Using Outlook 3
H Too Many Names error when configuring new account in Outlook Using Outlook 5
M Re configuring Microsoft outlook Using Outlook 2
S Outlook 2007 Configuring/ Connection issues to .hotmail; .live; Using Outlook 3
N Configuring Outlook with each logon? Using Outlook 5
C Configuring Inbox columns Using Outlook 2
B Configuring MS emails Using Outlook 8
V Need help on configuring Outook 2003 Rules and Alerts... Using Outlook 2
C Configuring Navigation shortcuts Using Outlook 3
M configuring email to sever Using Outlook 1
2 configuring external client access Exchange Server Administration 3
T Configuring Distribution Lists in Exchange 2010 Exchange Server Administration 3
C Configuring automatic reply with an approved message attached to original received message that will be forward to a 3rd party Using Outlook 2
C Help Configuring Exchange Server 2003 SP 2 for ActiveSync with a Droid X Using Outlook 11
A Configuring default size values for archive mailbox Exchange Server Administration 6
K id event 9353 after configuring photos in the OAB in Exchange 2010 Exchange Server Administration 1
W Configuring Exchange 2010 Server to deliver mail to other Internal E-mail Servers Exchange Server Administration 8
N steps in configuring ms exchange to send and recieve emails from different domain? Exchange Server Administration 30
N Configuring Blackberry Mobile For Exchnage 2010 Exchange Server Administration 3
G Options for configuring OWA Exchange Server Administration 1
V Installing/Configuring Exchange 2010 to Accomodate Sharepoint 2007 Exchange Server Administration 1
P outlook 2008 search box criteria couldn't be saved Using Outlook 2
pcunite Outlook 2019/O365 Build 13127.20408 errors when using MAPI calls Using Outlook 0
C Outlook with Office365 - search across account, by date rate, in multiple folders - how? Using Outlook 1
D Outlook 2010 Outlook in Windows 10 keeps asking for user name and password repeatedly Using Outlook 6
S Outlook mail adressing stops after first match in GAL Using Outlook 0
A Apply Selected Emails to outlook rules and Run Rules Using Outlook 5
T Changing Sent Items location in Outlook 2019 Using Outlook 0
J How do I disable advertising in Outlook 2019? Using Outlook 5
S Outlook (2016 32bit; Gmail IMAP) - Save sent message to Outllook Folder Outlook VBA and Custom Forms 0
L Unable to Sync Web/Android MS To Do with Windows Outlook Tasks Using Outlook 3
S Macro to move “Re:” & “FWD:” email recieved the shared inbox to a subfolder in outlook Outlook VBA and Custom Forms 0
S Outlook Macro to send auto acknowledge mail only to new mails received to a specific shared inbox Outlook VBA and Custom Forms 0
S Outlook Macro to move reply mail based on the key word in the subjectline Outlook VBA and Custom Forms 0
B Outlook Calendar not coming down from cloud Using Outlook 2
Terry Sullivan Sender's Name Doesn't Appear in the From Field on Outlook 365/IMAP Using Outlook 2
GregS Outlook 2016 Can I disable the Outlook Outbox? Using Outlook 2
P Outlook pst file is too huge with POP3. How to save more space? Using Outlook 4
Similar threads