Hi,
I am struggling modifying Sue's code 'reply with attachments'. I am not concerned about attachments. I would just like to reply to an existing email using a "canned" .msg response email. I currently have button macros that call a .msg file and it they work great except for capturing the current email body and reply to addresses. I am not able to to take the current email and insert my .msg file into the 'reply' email. I would also like to reply 'all' vs. just the "From:" respondent.
Here is her code:
http://www.outlookcode.com/codedetail.aspx?id=1228
Instead of attaching my 'gookie" code that isn't working, I have placed my working code. So can you give me some direction on how to make this work? Also, not sure if there is an issue using .msg files vs. oft. files?
*****************************************************
Message_Macros
*****************************************************
Sub eClerk_vs_Email()
Set myOlApp = CreateObject("Outlook.Application")
Set MyItem = myOlApp.CreateItemFromTemplate("
\\srvdesktop1\pctemp$\Email_Templates\eClerk\eClerk vs Email.msg")
MyItem.Display
End Sub
Sub eClerk()
Set myOlApp = CreateObject("Outlook.Application")
Set MyItem = myOlApp.CreateItemFromTemplate("
\\srvdesktop1\pctemp$\Email_Templates\eClerk\eClerk.msg")
*****************************************************
Buttons
*****************************************************
Private Sub Application_Startup()
Dim Mybar As CommandBar
Dim MyButton
On Error Resume Next
Application.ActiveExplorer.CommandBars("Menu Bar").Controls("&ITS Templates").Delete
With Application.ActiveExplorer.CommandBars("Menu Bar")
Set MyButton = .Controls.Add(Type:=msoControlPopup, Before:=8)
MyButton.Caption = "&ITS Templates"
MyButton.Visible = True
End With
'**************************************************************************************************
With Application.ActiveExplorer.CommandBars("Menu Bar").Controls("&ITS Templates").Controls
Set objCBPop = .Add(Type:=msoControlPopup)
With objCBPop
.BeginGroup = True
.Caption = "eClerk"
Set objCBSub = objCBPop.CommandBar
End With
With objCBSub.Controls
Set objCBB = .Add(Type:=msoControlButton)
With objCBB
.Caption = "eClerk vs. Email"
.OnAction = "eClerk_vs_Email"
.Style = msoButtonIconAndWrapCaption
End With
Set objCBB = .Add(Type:=msoControlButton)
With objCBB
.Caption = "eClerk"
.OnAction = "eClerk"
.Style = msoButtonIconAndWrapCaption
End With
End Sub