0

So i have developed a tool wherein there are set of email templates that can be chosen for reply. I am trying to work the tool to reply to an active email or selected email.

The tool works when you have selected an email in outlook. The problem is it won't work when for example you have opened a saved email in a shared folder, instead of replying to that opened email (saved from the folder) the tool actually open the selected email in outlook instead.


Dim OutlookApp as object

Dim outlookmail as object

Set OutlookApp as GetObject(, "Outlook.application")

Set outlookmail = OutlookApp.ActiveExplorer.Selection.Item(1).ReplyAll


If checkbox1.value = true then

.bodyformat = olFormatHTML

.display

.HtmlBody = 'mssg

End if

End sub
braX
  • 10,905
  • 5
  • 18
  • 32
jen
  • 9
  • 4

0 Answers0