Sending an email from Excel

BigDelGooner

Board Regular
Joined
Aug 17, 2009
Messages
197
Hi there - new member and my first post here.

I was wondering if there was a way to fill in the 'from' field as there is with the 'to' field when sending an email from excel vba.

Basically something like

ActiveWorkbook.SendMail
Recipients:="helpmeplease@stuck.com"
From:="MySharedMailbox"

Ideas anyone?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Thanks for the quick reply.

I did see that earlier after a google search but couldnt find anything on changing the 'from' field (it is also probably worth mentioning that I am using excel 2002)
 
Upvote 0
This is what I use:

Private Sub SendToRockmart()
Set myOlApp = CreateObject("Outlook.Application")

Set MyItem = myOlApp.CreateItem(olMailItem)
With MyItem

.To = "NAME"
.Attachments.Add "ENTIRE URL of FILE"
.Subject = "SUBJECT LINE"
.Display
.Send

End With
End Sub
 
Upvote 0
Thanks for the reply spcalan but this option still doesnt let me populate the 'From' field in an email.

I have access to a few mailboxes at work and need to populate the 'From' field with the string "Group-Modelling"

Any ideas?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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