MichaelDJJohnson
Member
- OS Version(s)
- Windows
- Outlook version
- Outlook 365 32 bit
- Email Account
- Office 365 Exchange
Operating system:: Windows 10
Outlook version: Outlook 32 bit
Email type or host: Microsoft 365
Outlook version: Outlook 32 bit
Email type or host: Microsoft 365
I hope Diane can answer this for me.
Please may I have the 32bit version of the following:
The script in RED does not work with Outlook 32bit. Can you here? I am grateful to you.
Regards
Michael
Please may I have the 32bit version of the following:
VBA Sample: Do Something When Reply is Clicked
How to do something when you click the Reply, Reply All, or Forward button. Add a category, change the subject, add a recipient, add boilerplate text.
www.slipstick.com
'Simple Reply, Reply All, Forward
Option Explicit
Private WithEvents oExpl As Explorer
Private WithEvents oItem As MailItem
Private bDiscardEvents As Boolean
Dim oResponse As MailItem
Private Sub Application_Startup()
Set oExpl = Application.ActiveExplorer
bDiscardEvents = False
End Sub
Private Sub oExpl_SelectionChange()
On Error Resume Next
Set oItem = oExpl.Selection.Item(1)
End Sub
' Reply
Private Sub oItem_Reply(ByVal Response As Object, Cancel As Boolean)
Cancel = True
bDiscardEvents = True
Set oResponse = oItem.Reply
afterReply
End Sub
Private Sub oItem_Forward(ByVal Response As Object, Cancel As Boolean)
Cancel = True
bDiscardEvents = True
Set oResponse = oItem.Forward
afterReply
End Sub
Private Sub oItem_ReplyAll(ByVal Response As Object, Cancel As Boolean)
Cancel = True
bDiscardEvents = True
Set oResponse = oItem.ReplyAll
afterReply
End Sub
Private Sub afterReply()
oResponse.Display
' do whatever here
End Sub
The script in RED does not work with Outlook 32bit. Can you here? I am grateful to you.
Regards
Michael