forked from macros4outlook/quotefixmacro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThisOutlookSession.doccls
31 lines (26 loc) · 1009 Bytes
/
ThisOutlookSession.doccls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Option Explicit
Private WithEvents oExpl As Explorer
Private WithEvents oItem As mailitem
Private Sub Application_Startup()
Set oExpl = Application.ActiveExplorer
End Sub
Private Sub oExpl_SelectionChange()
On Error Resume Next
Set oItem = oExpl.Selection.item(1)
End Sub
Private Sub oItem_Reply(ByVal Response As Object, Cancel As Boolean)
'QuoteFixMacro will open _a new_ reply, therefore the original one will be _always_ cancelled
Cancel = True
Call QuoteFixMacro.FixedReply
End Sub
Private Sub oItem_ReplyAll(ByVal Response As Object, Cancel As Boolean)
'QuoteFixMacro will open _a new_ reply, therefore the original one will be _always_ cancelled
Cancel = True
Call QuoteFixMacro.FixedReplyAll
'Call QuoteFixMacro.FixedReplyAllEnglish
End Sub
Private Sub oItem_Forward(ByVal Response As Object, Cancel As Boolean)
'QuoteFixMacro will open _a new_ reply, therefore the original one will be _always_ cancelled
Cancel = True
Call QuoteFixMacro.FixedForward
End Sub