No, you can't configure Outlook to use a different account when replying.
But you can programmatically change the account by executing one of the
account entries in the menu list:
Dim objCBs As Office.CommandBars, objCBPU As Office.CommandBarPopup,
objCBC As Office.CommandBarControl
Set objCBPU = ActiveInspector.CommandBars.FiĀ*ndControl(, 31224) 'GET THE
ACCOUNTS POPUP MENU
For Each objCBC In objCBPU.Controls
If objCBC.Caption = "Your account name" Then
objCBC.Execute
Exit For
End If
Next
However, this isn't very different from simply choosing the account yourself
- it maybe saves one click. You could have this code run automatically by
firing it during a certain event, but aside from the Item_Send event - at
which point you *can't* change the account anyway because it's committed -
there's no real good event to change the account.
It might be possible though to change the account during Item_Open, but
you'd need to trap the opening of all e-mails so that you can get a handle to
this event by setting a reference to the reply message *inside* the message
you are replying to (at the point of clicking the Reply button). However, I
think I tried this before and couldn't execute the account menu item during
Item_Open.
This may be more trouble than it's worth, IMHO.
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
Try Picture Attachments Wizard for Outlook!
http://tinyurl.com/9bby8
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
"simonc" wrote:
> When you click on Reply to create a new message the reply is sent using the
> account the original message was sent to. Is there any Outlook setting for
> changing this - so any reply would automatically sent using your default
> account although the original message might have been sent to a different
> account?
>
> If not, how would you structure a macro to do this? Can you get a macro to
> run when the reply button is clicked? Or is there a way of intercepting a
> message as it goes to the Outbox and changing the account if it is not
> already the default account?
>
> Grateful for any advice.