GoodManStuckNMicrosfWorld
Senior Member
- Outlook version
- Outlook 2016 64 bit
- Email Account
- Exchange Server
I'd like to use VBA which triggers when "forward" is chosen. All the code I've seen is how to *initiate* a forwarding. That's not my target. Rather, I'm trying to capture when forward has just been chosen.
I may be wanting code for "OnForwarding" (a made-up word) or possibly MailItem.Forward Event
(http://msdn.microsoft.com/en-us/library/office/ff862702(v=office.15).aspx)
So I'm looking to trigger code when forwarding has just been chosen, not when "send" is hit (Application_ItemSend); maybe something like Application_ItemForward (another made up word). I'm just stressing, I'm not trying to create a forwarding as myItem.Forward might do; I'm trying to figure out how to react when the forwarding has already been initiated such as by alt-W.
(FYI my intent is to automatically and always prepend
myAttachment.DisplayName & "(size:" & Format(myAttachment.Size, "0,0") & ")"
to the mailItem's .Body when alt-W is hit (i.e., when forwarding is chosen), from
For Each myAttachment In Inspector.CurrentItem.Attachments
or such.)
I may be wanting code for "OnForwarding" (a made-up word) or possibly MailItem.Forward Event
(http://msdn.microsoft.com/en-us/library/office/ff862702(v=office.15).aspx)
So I'm looking to trigger code when forwarding has just been chosen, not when "send" is hit (Application_ItemSend); maybe something like Application_ItemForward (another made up word). I'm just stressing, I'm not trying to create a forwarding as myItem.Forward might do; I'm trying to figure out how to react when the forwarding has already been initiated such as by alt-W.
(FYI my intent is to automatically and always prepend
myAttachment.DisplayName & "(size:" & Format(myAttachment.Size, "0,0") & ")"
to the mailItem's .Body when alt-W is hit (i.e., when forwarding is chosen), from
For Each myAttachment In Inspector.CurrentItem.Attachments
or such.)