outlook 2013 - send all emails from same account

TheMadTree

New Member
Joined
Mar 23, 2015
Messages
25
Good afternoon,
I don't know anything about macro's working with Outlook.
I have several inboxes in my outlook and I would like to make sure that all emails I send are sent from my personal account.
Could anyone help me write a macro that automatically selects my personal account as sender account whenever I write an email?
Thank you!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Good morning,
I wanted to share the workaround I've come up with just in case anyone has the same or a similar issue.
The following macro will warn you when you're sending an email form a certain account (so you can change it if necessary).

Hope it helps!

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)


If Item.MessageClass <> "IPM.Note" Then
Exit Sub
End If


If Item.SentOnBehalfOfName = " ACCOUNTNAME " Then
Prompt$ = "You sending this from " & Item.SentOnBehalfOfName & ". Are you sure you want to send it?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check Sending Account") = vbNo Then
Cancel = True
End If
End If


End Sub
 
Upvote 0
I suspect one reason that you didn't receive any responses previously was that you had posted this in the "Excel Questions" forum.
I've moved it to the forum where this type of question is more commonly placed.
 
Upvote 0

Forum statistics

Threads
1,225,750
Messages
6,186,808
Members
453,373
Latest member
Ereha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top