Dear Kushik, Please go in VBE of Outlook Insert module and paste the code and run macro
Sub InsertNameInReply() Dim Msg As Outlook.MailItem Dim MsgReply As Outlook.MailItem 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 Set MsgReply = Msg.Reply With MsgReply .Subject = "RE:" & Msg.Subject .htmlBody = "Hello " & Msg.SenderName "<br><br>Please find the sample ------------" & vbCrLf & .htmlBody .Attachments.Add "C:\Users\abc\Desktop\access addins.TXT" .Display End With Set Msg = Nothing Set MsgReply = Nothing End Sub -- Thanks & regards, Noorain Ansari *http://noorainansari.com/* *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/> On Wed, Feb 1, 2012 at 8:45 PM, KAUSHIK SAVLA <savla.kaus...@gmail.com>wrote: > Hi, > > I am looking for solution to below:- > > I receive No. of emails from some people asking for tax advise in Outlook > 2003. > > Then I create tax advice and I attach the file. > > I need to reply to the email received below:- > > Hi *Sender*(as per email), > > As requested, please find attached below payslip showing tax payable. > > (Attachment file would be here from specific file path) > > Kindly let me know in case you require further information. > > Best Regards, > Kaushik Savla - Assistant Manager > JLT India Pvt Ltd > > What I want to do - Firstly, I want Sender name to be captured > automatically as per email received from sender. Secondly, I want a code > which will write the above green highlighted text message automatically. > Thirdly, I want the file to be attached automatically. Pleas note I do not > want to send mail automatically, i want pop up box after reviewing of which > i can send the emails. > > > Please suggest me some solution. Your valuable time is highly appreciated > in this matter. > > Anticipating your assistance on aforesaid matter. > > Regards, > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com