Excel VBA Macro: Send Email from a Specific Account (in Outlook)

  Рет қаралды 13,898

greggowaffles

greggowaffles

3 жыл бұрын

Excel VBA Macro: Send Email from a Specific Account (in Outlook). In this video, we go over how to send an email from a different address. The code that we write allows the users to easily send emails from another address using "SentOnBehalfOfName". We also briefly go over how to create a dropdown list and insert the current date in a string.
#ExcelVBA #ExcelMacro

Пікірлер: 31
@skiff9
@skiff9 3 жыл бұрын
Thanks Gregg, this really helped me out a lot when automating e-Mails at work!
@greggowaffles
@greggowaffles 3 жыл бұрын
Glad to hear that!!!
@rhysifansagency
@rhysifansagency 5 ай бұрын
Dude thank you so much for this
@mikevanwieringen9883
@mikevanwieringen9883 Жыл бұрын
Thanks Greg, just what I needed :) Thanks for sharing
@greggowaffles
@greggowaffles Жыл бұрын
Glad to hear that! Thanks for watching!!
@leopoldoleonel
@leopoldoleonel 2 жыл бұрын
Excellent contribution, you really helped me with this code!!!
@greggowaffles
@greggowaffles 2 жыл бұрын
Glad to hear that!! Thanks!!
@juanfernandez5436
@juanfernandez5436 Жыл бұрын
This is great, thank you!
@greggowaffles
@greggowaffles Жыл бұрын
Thanks for watching!
@Nova73113
@Nova73113 Жыл бұрын
Thank you thank you thank you! You just saved me a ton of time!
@greggowaffles
@greggowaffles Жыл бұрын
No problem at all! So glad to hear that! Thank you for watching!!
@freezendog7
@freezendog7 Жыл бұрын
Thanks buddy, this just helped me, nice and clear instructions. 👍
@greggowaffles
@greggowaffles Жыл бұрын
Anytime!
@babamy22
@babamy22 2 жыл бұрын
Thnx buddy.
@jorgettesantos711
@jorgettesantos711 2 ай бұрын
Hi gregg, great video... is it possible to use the .SentOnBehalfOfMe function on Word mail merge?
@MrBumbum2812
@MrBumbum2812 3 жыл бұрын
Nice
@greggowaffles
@greggowaffles 3 жыл бұрын
Thanks!
@agatasiwak2499
@agatasiwak2499 10 ай бұрын
Thanks for the video! I have an issue though. I am trying to send emails from a shared mailbox that I have access/rights to but Outlook crashes when I generate the email. It works perfectly fine with me deleting the SentOnBehalfOfName :/ Are you able to advise please?
@mail87suren
@mail87suren 2 жыл бұрын
From address is not getting changed, pls assist
@riteshblackbelt2336
@riteshblackbelt2336 2 жыл бұрын
Somwhow, even afterctrying all this, I am still struggling to send the emails from my group email configured to the same outlook as the personal. I am missing something, i am not sure what
@brianhobbs8950
@brianhobbs8950 Жыл бұрын
How can you exclude an outlook account from sending an email. The spreadsheet we have auto sends an email and saves the excel spreadsheet when you close it. It sends the emails to the bosses who then review the spreadsheet. However, when they close the spreadsheet, it sends another email to them. How can we remove their email addresses (outlook) from being able to send?
@Moodle9x
@Moodle9x 2 жыл бұрын
When I send on be half another account, the sent item appears on my account. How can I solve this?
@debayanroy1234
@debayanroy1234 2 жыл бұрын
I have managed to create the vba code. There are 1200 rows, however for each row, there is a prompt in outlook to allow/deny sending the mails each time, defeating the purpose of automation
@halhirst2624
@halhirst2624 Жыл бұрын
permission requirements. ... It helps if the default account in your outlook is the mail account you want to send it from. I've expierenced the same problem. Did you ever find a resolutuion to this?
@javierromerolopez9988
@javierromerolopez9988 3 жыл бұрын
Hi Gregg, fantastic videos!!! I´m new on VBA. I have been able to send 2 ranges to a email, one static and the another one dinamic as you can see in your code below I would like to add the option of send an email from a different address But it doesn´t work any recommendation Kind regards Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(0) Set rg1 = Sheets("BLABLABLA").Range(Cells(1, 1), Cells(1, 9)) Set rg2 = Selection str1 = "" & _ "Hola buenos días, BLABLABLABLA. str2 = "Saludos ,Javi" On Error Resume Next With OutMail .To = "" .CC = "" .BCC = "" .Subject = "BLABLABLA " .Display .HTMLBody = str1 & str2 & RangetoHTML(rg1) & RangetoHTML(rg2) & .HTMLBody End With On Error GoTo 0 Set OutMail = Nothing Set OutApp = Nothing End Sub
@greggowaffles
@greggowaffles 3 жыл бұрын
thanks! i go over that in this video: kzfaq.info/get/bejne/r8iin6iD2Lu8fYU.html hope it helps!
@eduardosavinon2870
@eduardosavinon2870 2 жыл бұрын
how can you create spaces or tabs between word and lines in the HTML body ?
@greggowaffles
@greggowaffles 2 жыл бұрын
I’ll make a video on that soon, but depending when on the scenario, you might need double quotes “”
@akexcelinstitute2866
@akexcelinstitute2866 3 жыл бұрын
Hi how to send automatically when we click on run. When I run getting an error as run time error 287
@greggowaffles
@greggowaffles 3 жыл бұрын
Hi. Whats your code look like?
VBA Unleashed: Send Customized Emails in One Line
11:10
Excel Macro Mastery
Рет қаралды 10 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 92 МЛН
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН
How to create VBA code in Excel to send Emails through Outlook automatically | VBA
18:00
Bulk Emails | Word template as Outlook Body | Excel macro(vba)
16:30
Extreme Automation - Kamal Girdher
Рет қаралды 26 М.
Launching Templates with Macros in Outlook
13:12
Everyday Office
Рет қаралды 14 М.
Copying Data from User Selected Files Using GetOpenFilename
10:26
Excel Macro Mastery
Рет қаралды 18 М.
Automation: Send bulk emails using VBA and Outlook
13:35
PK: An Excel Expert
Рет қаралды 237 М.
Excel VBA Macro: Send Email (with Attachment)
8:55
greggowaffles
Рет қаралды 57 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 92 МЛН