configuring outlook 2010 through macros

Status
Not open for further replies.
S

sahil vij



Hi,
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,

Bangalore.
 
J

Jennifer Zhan



Hi,

See here:

http://social.technet.microsoft.com/Forums/en/ITCG/thread/2694215b-85c1-484d-8bab-e1cc072d674e

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)


Else
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
.Display

.Send

End With


ExitProc:
Set Msg = Nothing
Set MsgReply = Nothing
End Sub
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
G Need help configuring a PRF for Outlook 2010 and 2013 Using Outlook 0
M Configuring Outlook 2010 Using Outlook 5
Diane Poremsky Configuring SmartPhones to use EAS to Outlook.com New Slipstick.com Articles 0
Diane Poremsky Configuring an Outlook.com account in Outlook New Slipstick.com Articles 0
Diane Poremsky Configuring a Manual Send and Receive in Outlook New Slipstick.com 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 @me.com 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
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
I Outlook 2003 shows html code when To: field is empty Using Outlook 5
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 1
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 2
C All Gmails don't show in Outlook 2019 Using Outlook 0
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
U Outlook 2016 Outlook 2016 sender name Using Outlook 1
T Compuserve, Yahoo, Oath2 and Outlook 2013 Using Outlook 4
E Work uses live accounts for emails for all employees. Can we use the outlook calendar to give the employees an universal work schedule calendar? Using Outlook 1
witzker Macro to move @domain.xx of a Spammail to Blacklist in Outlook 2019 Outlook VBA and Custom Forms 4
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 18
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 1
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 14
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 13
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

Similar threads

Top