Send Emails from Excel - Automatically and Manually (Macro & Non-Macro Solution)
VBA/Macros Course (40% Discount): www.teachexcel.com/vba-course...
Send Emails from Excel Course (All You Need to Know): www.teachexcel.com/premium-co...
Excel File: www.teachexcel.com/excel-tuto...
Excel Forum: www.teachexcel.com/talk/micro...
How to send Emails from Excel using automation and also via a handy button-click.
This tutorial covers everything you need to know to be able to write simple working macros to send emails from within Microsoft Excel and also a simple non-macro method.
You'll learn how to automate:
- adding multiple recipients
- sending attachments
- sending the current workbook
- changing the email body and subject
- adding CC (Carbon Copy) recipients
- adding BCC (Blind Carbon Copy) recipients
- and more
I also cover a common method that is used to create email macros for Excel, but that is not good practice, explain why it is not good practice, and show you how to change it to make it work better.
Enjoy!
TeachExcel.com
Пікірлер: 302
Downloadable File + Advanced Email Topics Covered Here: www.teachexcel.com/premium-courses/96/send-emails-from-excel-course?src=youtube_v_bxsvO6_uJUs_comment (This is a premium course.)
@ralitsabozhkova9794
3 жыл бұрын
Hello! The code is not available, is that right? We have to purchase the course?
@Mohammedkhan51
3 жыл бұрын
Your first 17 seconds showed what i was looking for - many thanks mate
@nidakhan7213
2 жыл бұрын
Excel file is not downloading i need code to practice please send me the files if possible
This is what i were looking for since 2 months. Thank you Creater. Great job 👍
I seriously LOVE you for making this video. This is going to save me countless hours at work. Cheers!
Your first 17 seconds showed what i was looking for - many thanks mate
Hey man this is one of the cool video I ve ever seen.. Thanks for this
Simply brilliant. Super easy to understand.
Hi.. great video.. you really broke it down into easy steps.. thanks! Just so I understand.. the main benefit of referencing the Object Library of the external application (in this case.. MS Outlook) is to get Intellisense when writing your code.. correct? But, the downside is that if the code is run on a system without the Object Library being enabled, then the macro fails.. thus making your first method more robust.. but with the slight detriment of not having access to Intellisense while you write your code.. correct? Thanks again for all the great tutorials.. learning a lot. Thumbs up!
Great job! Appreciate the extra warnings/recommendations to NOT use code that has to enable References. Good idea to avoid issues when sharing or application version upgrades. :) Would like to know if I can use the "emailItem.Attachments.Add ("C:\test\test.xlsx")" with the file reference of something like ("C:\test\*.pdf") that would allow the user to be prompted to choose a PDF file in the C:\test folder, because I already have working code prior to this statement that printed the active workbook to PDF and already saved the workbook as XLSX for future editing.
Outstanding! I feel like a pro with this easy to understand tutorial. Thanks!
Great Video! Thank you so much for sharing.
Fantastic - just what i needed. Thanks!
Thanks for easy explanation :) However you can, and sometimes you have to use both .display and .send. Especially when you want to delete the default signature that adds itself to new emails.
@toni-de
2 жыл бұрын
I'm not getting the default signature. How can one add it?
thanks a lot, great video, any suggestions about choosing a different sender with outlook? and adding a different signature?
most comprehensive tutorial so far👍🏻👍🏻👍🏻
This was VERY helpful! I wrote code that referenced and it worked for months until the Team expanded and i wasn't sure why only 2 or 3 people couldn't use my buttons. lol
Really helpful tutorial and awesome presentation. Very nice work.
So we’ll done. Having all these examples is excellent.
Outstanding. Never used VBA before. i just try to keep all the code making in the cells. With that in mind how do i take what you made in this video and say have it automatically generate (in display version as you stated in your code) when a cell triggers it... Example: i keep a workbook record of daily equipment status. if a cell reaches under say 80% the cell will trigger the auto email and display it... how do we get to that point.
This is a brilliant video! With this ‘create email function’ I am looking to create a timetable of sorts and input colleague names. I’d like excel to then email each inputted colleague with a calendar invite (outlook) for the specified date and time. Is this possible??
You saved me so much effort. Thanks for this amazing video.
@TeachExcel
4 жыл бұрын
I'm very glad I could help :)
Thanks a lot for all the codes. Very useful.
Brilliant video. I swear I have learnt more from Google and KZread than school ever taught me :)
Very helpful especially if no exp or knowledge of vba at all. May I ask how can I attach multiple PDF files to a single email item saved in a folder?
It's a very helpful one.Thanks for sharing.
Thanks so much, really nice!
@TeachExcel
5 жыл бұрын
:)
This is an awesome tutorial! Love it. I am working with tables. How can pick values from cells in the row and place them in the body of the email? Any feedback greatly appreciated!
@dc2guy2
4 жыл бұрын
Here's another way to do this without any VBA and only using a few formulas! kzread.info/dash/bejne/iXZ8rdqThbzUY5c.html
@nikki_siddi
4 жыл бұрын
Refer to Leila gharani’s video where she talks about this
Thank you . Very helpful
I really loved this video. I believe it's very helpful. Do you also have another video for creating an email with tables on the body? I generally prefer adding the tables on the email to be easy for my customers to see the table on the email without opening any attachment. Thanks
@shubhamgond11
2 жыл бұрын
Hello bro, same here. I also have to add tables for daily orders in my mail. Did you figure it out how to add? If yes, please let me know
@excelonlineadvisor
Жыл бұрын
@@shubhamgond11 Yes, you can add only selective content from the sheet instead of sharing the complete sheet
Hi! You are a great tracher! Please let me know...Can i choose to sent only one sheet and not the entire workbook?
This was a great tutorial! I had a quick question though. I do account management type work and have different internal associates attached to different clients on a sheet. Sometimes I have to send 100 emails to 100 different people while including 2 or 3 different people attached to each email for different clients. If I have a spreadsheet where lets say the client's email address is in A1, the manager for one product is in b1 and another product c1 (and then that pattern continues through A100, B100 and C100); how would I code it so that 100 people get 100 different emails while having the the correct team members CC'd for each. Additionally, is there a way for me to include form codes in the email body. For example, personalizing the name, dates, business names, ETC for each of the emails being sent out?
Thanks you very much for a very well explained and easy to understand video I have two questions: 1) Is there a way to add a larger Body to the email (several lines)? and 2) How can you add a "larger distribution list"?. Again, thanks a lot. Leopoldo Vazquez
Awesome video for excel learner.
Hi, thank you for this wonderful video. I Just want to ask the code to add auto signature. thank you
Does this work with the browser version of outlook? Outlook 365, I think.
Nice work, Could you please tell me, how to add time condition to send auto email at a certain time. Waiting for valuable response. Regards
@samethalic
4 жыл бұрын
Same here
@micha4186
4 жыл бұрын
What was working for me was setting scheduled notification in Outlook which triggered sending email. Or you can set Windows schedule item which triggers excel sheet with VBA executed while open.
Hey, can excel just send an email to notify someone there has been some data added. So each time someone updates the sheet with some new data it pings me/others to let us know. I dont need or want it to attach the sheet to the email. Ta!
Great !!! Is there a similar way for recieving an emails?
What if I wanted to email an entire row of data, how to I create and email that array?
@ginsanhertz9788
2 жыл бұрын
Did you get the solution bro?
great video, very helpful and easy to follow. How would I go about adding the default signature 2 lines down from the contents of the body?
@excelonlineadvisor
Жыл бұрын
You can create (Regards and Name )the signature on the mail body while writing the code or you can use the signature as a reference also.
Hi, thanks for this informative video. But could you please tell us how to add signature in it?
Thank you so much. It helps me alot.
I need help to find a specify a logic function in excel that will match the certain value in a column and cell and if the value match then it will look the immediate left cell and if there is a "1" in that cell then it will go to the column header and get the column header into different worksheet. If the immediate left cell is empty then it will loop through that row and find value "1" and get the column header.
Thank you so much ❤️❤️❤️
Do you have a macro code for sending email from Excel to IBM Notes instead?
Great Video!!!!
This is great can you advise if I can code in the from email address?
Is there a way to specify the email address you want to send the email from?
Great videos. I saw security alert 'allow', 'deny' when setting are on '. Send' when doing bulk emails from Excel to outlook. Is they way to diaable it especially when doing bulk emails
Thank you so much!!!! I was struggling it was easy to follow and to understand the content.... But I have a quick question though, If I add a range of cells that contains a table and I add it as the email body will the email keep the table's formatting, like color, size and/or font?
@excelonlineadvisor
Жыл бұрын
Yes
Really useful. Thanks.
@TeachExcel
5 жыл бұрын
Glad to help)
Loved this
is it possible to send a selection of the workbook as a pdf and not the entire workbook?
Hi.. If I automate the send thru if condition and the file will be used or openned by 2 users (shared file), will this send two emails one each from two users who currently open the file at the same time?
Hi Sir, Do you know how to send automatic mails on certain times while computer is off ?
great video! thanks
SUPER explication, SUPER easy to understand 👏🏻👏🏻👏🏻👏🏻
Thank you, great video! Do you have a video for this? I have a workbook with 70 sheets, one sheet for one person. Through VBA and without breaking up the workbook into 70 separate workbooks, can I email a single sheet to each person if their email address is provided in a cell on their specific sheet?
@TeachExcel
3 жыл бұрын
No, but you can create code that does all of that in the background - creating the workbook, sending it to the user, and deleting it - for each user. If you want help figuring this out, post your question in our forum and provide a detailed description of the issue and any code that you are already working with. The solution to your issue is not complex, but it requires a few lines of code for sure. The forum: www.teachexcel.com/talk/microsoft-office?src=yt_comment
Great Work! I would like to learn more. Please keep me posted
@TeachExcel
3 жыл бұрын
Thank you! :) Subscribe to the weekly newsletter on TeachExcel.com and you will be always informed, including for the new classes I am making)
A quick question...Is there a rule in the macro that will send the email as a "Send on Behalf of" and a "Send As"?
why if I want to send the work sheet by gmail, and want for the receipting end to have excel input?
Hi, how would you go about adding a 'Check Names' object in VBA?
If there are multiple sheets in that workbook and I want to select a particular sheet how do I do that? How do I activate that sheet?
I looked for a VBA methodology for sending an email to a list of people in an Excel Spreeadsheet. The problem with many of the proposed solutions is that you have asked someone how to tell what time it is and they showed you how to build a clock. You provided a relatively simple framework that I was able to modify so that it looks at a list of names and emails and sends a message to each person on the list. The only thing I had to figure out was how to reset the email after each email was sent as I was getting an error message as I looped through my email list. With a little bumbling I stumbled on a solution using createitem(0) at the end of each run through the loop. Thanks.
@petersonmcdavid5520
Жыл бұрын
Can you send the code for this.
@kevinklarnet8115
Жыл бұрын
@@petersonmcdavid5520 The code below sends a PDF that is generated in another macro to a list of recipients. The list is generated from a form with a dropdown box that allows you to select multiple recipients. That dropdown box is on a master form and the names and emails are stored on a separate Worksheet within the workbook. Once the names are selected the macro I provided below is executed. It runs through a loop For/Next and for each name selected it executes the send routine imbedded in this code. I admit this is not as clean as it could be but it worked for my purposes. I just tested it and it still works. Hope this helps. Kevin Private Sub Email_PDF_Click() Dim emailapplication As Object Dim emailitem As Object Dim membername As String Dim membmail As Variant Dim ML As Worksheet Dim count As Integer Dim i1 As Integer Dim NoEmailCount As Integer Dim printnoemail As String Dim DS As Worksheet Dim listcounter As Integer Dim meetingname As String Dim i As Integer Dim group_name As Integer Dim PDF_Email_File As String Set emailapplication = CreateObject("Outlook.Application") Set emailitem = emailapplication.CreateItem(0) Set ML = Worksheets("Member List") Set DS = Worksheets("Data Sheet") count = WorksheetFunction.CountA(ML.Range("A:A")) - 1 meetingname = DS.Range("G2") Module2.Create_List_PDF NoEmailCount = 2 PDF_Email_File = ActiveWorkbook.Path & "\" & meetingname & " Membership List.pdf" listcounter = Edit_List.Listcount For i = 0 To listcounter - 1 If Edit_List.Selected(i) = True Then membername = Edit_List.List(i, 0) membmail = Edit_List.List(i, 1) If membmail = "" Then GoTo errorloop End If emailitem.To = membmail emailitem.Subject = meetingname & " Meeting Lottery" emailitem.Body = membername & ", the latest version of the " & meetingname & " Member Phone List is attached." emailitem.Attachments.Add PDF_Email_File emailitem.send Set emailitem = emailapplication.CreateItem(0) errorloop: End If Next i Set emailitem = Nothing Set emailapplication = Nothing Worksheets("Front").Select Range("a1").Select For i = 0 To Edit_List.Listcount - 1 Edit_List.Selected(i) = False Next i End Sub
@petersonmcdavid5520
Жыл бұрын
@@kevinklarnet8115 I love it are you currently on LinkedIn?
@kevinklarnet8115
Жыл бұрын
@@petersonmcdavid5520 Glad it helped. Took some time to cobble it together a while ago. There may be a couple of unnecessay lines of code there. Yes, I am on LinkedIn.
You are the best
very very nice and important tutorial
Excellent tutorial!
Very nice and clear explanation. Awesome tutorial.
@TeachExcel
3 жыл бұрын
Thank you! I'm glad you liked it!)
thanks man
Hi thanks for the video, very useful for me. However, is it possible to just attach a single worksheet from the workbook?
Thanks so much for this video.. you save me hours and hours of research!! You are the Man!!
I love it great job!!!!!!!!!!!!
I need to know whether this can be automated or not: I get one raw data details on excel sheet on mail with attachment, this attached excel sheet gets automatically downloaded to certain location and then macro runs on that excel file as per schedule and then that excel sheet is send to several email addresses as per schedule without human intervention? What is required to do this automation?
Great video. Quick question, for the email body, what do I put in here so that email goes down the page and sentences on new lines? I'm writing my email but when I press play it's all coming out on one line. Thanks.
@davidgray9242
4 жыл бұрын
%OA is equiv of carriage return/ new line, insert in your text, spaces not required before or after so "have a nice day%OATim" puts on two lines
Could you please make a video, how to send e-mail (macro solution from MS Project) ?
Great job👍
Thanks sir.. very useful for me
@TeachExcel
5 жыл бұрын
You're welcome! Glad to help)
thank you so much! Please, how to send email to different recipients with different attachements?
Awesome. Very well explained. Thank you !!
@TeachExcel
2 жыл бұрын
Thanks RS, I'm glad you think so :)
Thank you for the video. I tried to download "Downloadable Files", but it was an empty Excel file. Could you advise?
@TeachExcel
4 жыл бұрын
Hit Alt + F11 and open up module1 - the file holds the macro.
Can you pull over two cell references to be included in the body? Tryng to use a range of cells but not working.
please where do i copy the macro...thanks you very much
Is there a way to add code that saves the workbook before it sends without hitting the save button on the ribbon? Trying to remove steps if I can to make it easier on the people that will use my worksheet. Thank you
Is it possible to a formula like if a>9... then... mailto ??
Good night, it is possible to create a spreadsheet, with due date, description, value and payment status and place it on OneDrive or elsewhere but it will automatically send an email with the accounts that have Status = Open and that are due the day before expiration. All this without having to open the spreadsheet? If possible, I could teach. Thank you very much.
Thank you
Thank you very much for the valuable information. I have question, Hwo can I send the email from different mailbox?
Awesome ..thanks
Can you send a single tab or worksheet versus the whole workbook? For instance each tab goes to a different email address (in A1 of each tab)
@TeachExcel
5 жыл бұрын
Yes you can do that. One way is to save each tab as a new file, attach it, send it, delete the newly saved file. There might be an easier way but, conceptually speaking, that's an easy way to do it.
Hello Im getting a Run-time error '429': Activex component can't create object
@immanuel8794
3 жыл бұрын
Did you maybe found a solution to this? i have that same error.
Hi Buddy good video, i will to send a sheet by email not complete file is there option in Excel
Hi, love your work. You make methods like these easy to understand!!!
@TeachExcel
3 жыл бұрын
I'm so happy to hear this :))
Can you embed flyers in this?
Awesome vid ! Is it possible to apply a timer to the Emails ? Say every 7 months for exemple it sends an Email. What would be the formula ?
Is there a way to have the attachment that be editable. I send the email with the current worksheet attached and another from the share drive. The one from the share drive is in read only mode is there a way to change that option?
@TeachExcel
3 жыл бұрын
Have you tried to save that file to another file (SaveAs) and then send it? I won't be notified when you reply to this, so if that suggestion doesn't work, just ask in our forum on teachexcel.com and it will be easier to help out.
I would like to send via email only the active sheet not the entire excel file. How can i do it?
Thank you very helpful, How can I send only the Active sheet with the Active sheet name vs "Book 1".
@TeachExcel
3 жыл бұрын
Hi Michael, first, save the file before sending it and then you can control its name.
is it possible to make a macro to send email but through gmail in chrome or else?
Afternoon bud, I did exactly what you did on the video, when I update my spreadsheet no email gets sent out. Do I need to click on a button to activate it, or.....? your help would be very much appreciated.
@adamwood46
2 жыл бұрын
You have to physically click send to forward it to recipients. I'm searching to see if what you want can be achieved.
This was very helpful. But may i ask how can i add cc using another cell on the excel
Hi, I have query, if there are multiple sheets in the same excel file and I just want to send sheet1 only. Is that possible?? If yes, than how?? Thanks
@MrBeckball
4 жыл бұрын
Please answer to this question!!! Still waiting
@nikki_siddi
4 жыл бұрын
I have the same doubt