How to Always Reply and Forward Emails From a Specific Exchange Account in Outlook

Pablo SAEZ 1 Reputation point
2022-03-02T11:42:58.18+00:00

this VBA doesn't work on exchange but Kutools addon managed to automate this, I don't want to pay addon just for this option :(
need help

Public Sub ReplyBySpecAccount()
Dim oAccount As Outlook.Account
Dim oMail As Outlook.MailItem

For Each oAccount In Application.Session.Accounts
If oAccount.DisplayName = "your account name" Then
Set oMail = Application.ActiveExplorer.Selection(1).Reply
oMail.SendUsingAccount = oAccount
oMail.Display
End If
Next

End Sub

Outlook | Windows | Classic Outlook for Windows | For business
Developer technologies | Visual Basic for Applications
{count} votes

1 answer

Sort by: Most helpful
  1. Robert Sparnaaij [MVP] 1,816 Reputation points MVP Volunteer Moderator
    2022-03-02T12:51:58.033+00:00

    When using a single Exchange mail account with multiple mailboxes, you'll need to set the From address and not the account.
    See: Send As a Delegate or a Distribution Group by default

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.