How To Automatically Send Customized Emails With Attachments Using Excel Macros

  Рет қаралды 72,692

Automation Made Easy

Automation Made Easy

Күн бұрын

In this tutorial we would learn:
1. How to send Emails Using Excel Macros
2. How to Attach files in an Email using Excel Macros

Пікірлер: 138
@leroymentor9932
@leroymentor9932 Жыл бұрын
I'm so grateful for this video. It's going to save me a lot of time, thanks!
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad it was helpful!
@mehdibakhtiari300
@mehdibakhtiari300 2 ай бұрын
You made it really easy to understand!
@AutomationMadeEasy
@AutomationMadeEasy 2 ай бұрын
Thank you
@mehdibakhtiari300
@mehdibakhtiari300 2 ай бұрын
I have still problem with the attachments. My VBA deletes first the pervious emails then attaches the PDF to the new one. At the end an email remains with 10 attachments.@@AutomationMadeEasy
@alyaalaksmigodwin1197
@alyaalaksmigodwin1197 24 күн бұрын
Thankyou so much! It helped me a lot
@ericndega
@ericndega Жыл бұрын
Great and amazing insights!
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad you enjoyed it
@shankaraellamula8463
@shankaraellamula8463 Жыл бұрын
Thank you very much...This was very informative and easy to understand.....😊
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad it was helpful!
@shelbybennion4585
@shelbybennion4585 Жыл бұрын
This was soooo helpful. Thank you!
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad it was helpful!
@SadamHussain-yx3uh
@SadamHussain-yx3uh Жыл бұрын
Thank you for your guidance. It's worked
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad it helped
@andrewbeal6443
@andrewbeal6443 Жыл бұрын
Thanks! Very well done. What is the code to delay the sending of the emails to a specific date/time?
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
You can set up a scheduller job in windows to have this macro execute at a specific time
@j.dasilva4567
@j.dasilva4567 2 жыл бұрын
Very good. I was doing the same in a more complex way, ur way is so much better. Thanks for this. Could u please show how to add default signature? Thank u.
@AutomationMadeEasy
@AutomationMadeEasy 2 жыл бұрын
let me check and get back
@aznbspikey
@aznbspikey Жыл бұрын
@@AutomationMadeEasy did you find out?
@archiedelarosa499
@archiedelarosa499 Жыл бұрын
This is amazing! Thank you!
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
thank u
@test4629
@test4629 Жыл бұрын
You are amazing my friend! Thanx allot
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad it helped!
@xreeyJ
@xreeyJ Жыл бұрын
Hi sir, appreciate your video. Very helpful. However i have two questions which is 1. How to indicate company logo under signature? 2.How to indicate multiple email address?
@hongxiliu4282
@hongxiliu4282 Жыл бұрын
Hi there, I got the same problem.. when I insert multiple emails on Excel cell, it doesn't seem to be able to detect when the email is generated and i need to click them one by one. Have you found a way yet?
@sanjeebmaharjan
@sanjeebmaharjan Жыл бұрын
Best, Thank you so much.
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Welcome!
@davide740
@davide740 7 ай бұрын
Great video! What would the code be if we were to use simple macro code with no Microsoft Outlook 16.0 object library? I understand it would be more flexible as it can work on all computer without activating an additional library. thanks
@sandeshpadigela0
@sandeshpadigela0 Жыл бұрын
This is a really good trick, thanks for taking the time to share knowledge, I do have a question extent of this. 1) We have employee performance data with multiple details, 2) we get this data week basis 2) We select each employee's data from the validation list 3) We take this screenshot 4) Copy the screenshot in an email 5) Send that to employee - I see challenge to select 20 employees from data validation list and copying screenshot, is there any way we can work on this?
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Well seems feasible but will need lots of customization.
@praneshkumarrathinasamy7740
@praneshkumarrathinasamy7740 Жыл бұрын
Amazing content. Thanks a lot
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
My pleasure!
@selvan1264
@selvan1264 2 жыл бұрын
Thanks for the video. How to save the outlook email draft into local folder?
@kasragg2715
@kasragg2715 11 ай бұрын
It was so helpful, Would you please let me know how we can modify "Email Address" of Sender too? Thanks
@AutomationMadeEasy
@AutomationMadeEasy 11 ай бұрын
for that you will need to have rights of the mailbox from whose email id you wish to send the emails
@9r266
@9r266 Жыл бұрын
Sir you're great thanks
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
So nice of you
@samanthaworrall1918
@samanthaworrall1918 Жыл бұрын
Thank you so much!! This has saved me hours of work!! Is there a way to add my email signature also to send it from a joint or alternate email address?
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Glad you found it helpful. Will try to find a solution for it. Dont have it right now
@亦涵张
@亦涵张 Жыл бұрын
Amazing contents! Can I please ask a further question? I want to reply on top of a specific email, reply it with customized content like what you did here, while still keeping the previous email thread… somehow I can’t keep both at the same time? Much appreciated if you could provide help on this! Thanks in advance
@darshilshah9755
@darshilshah9755 Жыл бұрын
This really helped alot. Need one more help though. I have access to multiple mailbox, this code sends mails from default email, however, i want to send mail from other id. Please let me know the line of code required.
@janinehadia3036
@janinehadia3036 11 күн бұрын
How so send it from different email address for example if i am going to use the generic mailbox on behalf of my department?
@deepali8939
@deepali8939 2 жыл бұрын
Hello, if i want to choose email id for TO: and CC: how to customize it?
@wolfenstein6288
@wolfenstein6288 2 жыл бұрын
Excellent video , i want to know, i have to keep the default mail body which is pre set as signature on my outlook and rest of the things should be done via this excel and can we add more file name columns if i have to send 2 or 3 invoices on same ID
@antothomas7523
@antothomas7523 Жыл бұрын
This is very helpful. Can you also please share the code for sending these emails using outlook web application.
@daffaburhan6675
@daffaburhan6675 Жыл бұрын
Great video! Can I setting to send that email automatically everyday at specific time?
@AutomationMadeEasy
@AutomationMadeEasy 11 ай бұрын
you will have to use windows scheduller for the same
@vorkpalur
@vorkpalur 5 ай бұрын
Hi, first of all, thank you very much for sharing this. I have a question, is it possible to do the same with Gmail account without Outlook?
@AutomationMadeEasy
@AutomationMadeEasy 5 ай бұрын
yes, refer below tutorial: kzbin.info/www/bejne/mWi2YWBprZ6bfNk
@Micomicooo-eo5ee
@Micomicooo-eo5ee Ай бұрын
Hi sir how can I make part of the text bold?
@MyDearFriend
@MyDearFriend 7 ай бұрын
amazing video, is there a way to have it send emails based on an if statement. for example If a date is coming up?
@AutomationMadeEasy
@AutomationMadeEasy 7 ай бұрын
certainly it can be customized but it all depends on structure of data and conditions
@123naimish
@123naimish 2 жыл бұрын
Hello Sir, Excellent tutorial it is perfectly working. I have query, if I need to add my outlook signature in email, then how the code will work?
@AutomationMadeEasy
@AutomationMadeEasy 2 жыл бұрын
Let me check
@shubhamyadav-nd4zx
@shubhamyadav-nd4zx 2 жыл бұрын
Help me to make a VBA code to send 20 files. Just like you did it need to add up a little bit more. Let me give details a little bit. Each mail has a different attachment and mail body. Like if I am sending my 1st mail. I will open that excel file, go to a particular sheet, copy data, paste it to the email body, and attach that same file as an attachment. Once the mail is ready then that file gets closed. And then with 2nd mail and it will go on for 19 times.
@JLa-lw6pe
@JLa-lw6pe 3 ай бұрын
Can you send an excel spreadsheet using this code?
@himanshuarora14
@himanshuarora14 7 ай бұрын
I want to send follow up emails from the same email threads that they were send from last time, how can I do that?
@kristinwillers6723
@kristinwillers6723 2 жыл бұрын
Hello - I wish to add multiple attachments to the email send, up to 4. How would I identify the different columns and references to ensure the files are attached correctly? I did not see this option on your blog. Thank you,
@saptarshidalal5765
@saptarshidalal5765 Жыл бұрын
This is really helpful. But how can I add an image in this email? could you advise on this please.
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
You can attach the image. Attachment example is explained in the tutorial.
@saptarshidalal5765
@saptarshidalal5765 Жыл бұрын
​@@AutomationMadeEasyI do not want to attach it. The image will be in the mail body
@dhirajsuryawanshi4510
@dhirajsuryawanshi4510 6 ай бұрын
Great video. Bro I want to create automation in excel to auto send Birthday wishes email. Could you please help me on this. I got the project
@AutomationMadeEasy
@AutomationMadeEasy 6 ай бұрын
for trainings/consultation write into info@automationandagile.com
@YaelShriki
@YaelShriki 11 ай бұрын
Hi! Thank you so much for this video it will be such a huge time saver for me! I'm currently trying to get this set up but i get an error with the "attachments.add strfolder & "\" & strfile" line. When I run the code I get an error saying "the drive is not ready. Verify that the desk is in the drive and that the door is closed" Do you know how to amend this? Sincerely,
@YaelShriki
@YaelShriki 11 ай бұрын
I've added the folder to my desktop and repasted the path into the folder line and i still get an error for the attachment line saying " file name or directory name is not valid."
@gaspumprepairservice7009
@gaspumprepairservice7009 8 ай бұрын
@@YaelShrikibe certain you’re specifying the correct drive letter and path -> “C:\DATA\REPORTS”, for example. Notice my example did not end with a backslash as the code provides one.
@EZEQUIELGOMEZHORVITZ
@EZEQUIELGOMEZHORVITZ Жыл бұрын
Could you provide a link to your blog with the code?
@vipulprajapati2797
@vipulprajapati2797 Жыл бұрын
Hello sir, Your VBA programming was outstanding. I have one query. suppose on the third row there is no attachments so how can i make programming for those client id only who has attachments and no mail sent for those who has no attachments?? I am waiting for your reply. Thank you
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
u can insert an if condition before the code which sends email. Syntax given below Assume filepath is at cell D20 filepath = ThisWorkbook.Sheets("SheetName").Range("D20").text if filepath "" then 'code to send email End if
@vipulprajapati2797
@vipulprajapati2797 Жыл бұрын
Thank you sir For your reply. I have One another question. I have applied this programming for sending multiple files to individual recipients and I was succeeded but when some persons doesn't have multiple files say only one file and other have more than one files then what should i do in programming. I have tried but didn't succeeded in this. I have been eagerly waiting for your reply@@AutomationMadeEasy
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
@@vipulprajapati2797 - Well it depends how your data is formatted. the sloution needs to be customized based on data. If you need consultation/training write into info@automationandagile.com
@robydc56
@robydc56 2 жыл бұрын
Hello, great video, thanks. 1 question, please: if I want to set the Amount in blue color, how can I do? Thank you!
@AutomationMadeEasy
@AutomationMadeEasy 2 жыл бұрын
let me check
@SanviPatil2019
@SanviPatil2019 2 жыл бұрын
superb.. sir how we can send pay slip without outlook via. SMTP
@nagakishorel1368
@nagakishorel1368 6 ай бұрын
If 'To' email Id cell is blank then Email shouldn't go what code we need to enter ?
@reynandtrinidad4228
@reynandtrinidad4228 2 жыл бұрын
Sir, how about email will not be sent (pop up as new email) & can still be updated manually to add tables & pictures? Thanks in advance
@RadMoulk-ok3nn
@RadMoulk-ok3nn Жыл бұрын
how to send a message with images like in signature since excel does not accept images in sheets
@deepakbhatia8839
@deepakbhatia8839 7 ай бұрын
Just few questions about this is that i have written the code as per the video however mail is being sent repeatedly n number of times and in my data multiple records are tagged to one single client id request you to kindly how to send the one consolidated email basis the client id instead of sending multiple emails basis the number of rows
@AutomationMadeEasy
@AutomationMadeEasy 7 ай бұрын
need to see how your data is structured.
@deepakbhatia8839
@deepakbhatia8839 7 ай бұрын
@@AutomationMadeEasy please assist how can I share the data samples for your reference.
@AutomationMadeEasy
@AutomationMadeEasy 7 ай бұрын
for training/consultation write into info@automationandagile.com
@eltotsira1000
@eltotsira1000 7 ай бұрын
Hi, can you share the VBA code so I can copy paste. Thank you.
@randomrandy3059
@randomrandy3059 10 ай бұрын
I have a mac, and been on mac because of my pro audio interest... Mac is not so Microsoft friendly. Alot of the features that could make my system more efficient are on Windows! I have to DL ODBC Drivers to connect to the SQL MicrosoftServer to be able to do this. And thats where I get stuck. Im on a mission. Any Mac users out there trying to accomplish this task?
@haridx05
@haridx05 2 жыл бұрын
How to add cc and Bcc.can you plz add that
@pramodofindia
@pramodofindia 2 жыл бұрын
Can this be modified to work with Gmail? How? Thanks in advance.
@pramodofindia
@pramodofindia Жыл бұрын
Thanks, but the reason why I want to use Gmail is, that I don't have Outlook.
@SunitaKumari-fb6gg
@SunitaKumari-fb6gg Жыл бұрын
Thanks
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
Welcome
@ರಘುನಾಥ್ಕೆ
@ರಘುನಾಥ್ಕೆ Жыл бұрын
Sir name part is not working its coming ws how to make it to auto fetch correct name from Customer Name coloum Please guide
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
check spelling, it will work the same way as other fields
@ರಘುನಾಥ್ಕೆ
@ರಘುನಾಥ್ಕೆ Жыл бұрын
Thank you sir 🙏 It's working
@michaellawrence6009
@michaellawrence6009 Жыл бұрын
Is there away to add CC's
@emilvincentgomez8977
@emilvincentgomez8977 Жыл бұрын
Hello. Useful presentation. I have a query. When i am entering the data which has alphabets, numbers and special characters it is popping error. Please help me.
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
whats the error?
@bertongputik1015
@bertongputik1015 Жыл бұрын
Hello! appreciate your video, just asking why my result is only sent to top of receiver, not the same with your result sent to all receiver (6) and I have an error to whole line (With objEmail upto End With). please help me to resolve this problem. Thank you
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
need to see your code and spreadhseet to understand the error
@bhumapoojithreddy6737
@bhumapoojithreddy6737 8 ай бұрын
I have two mails in my outlook one is personal and business so when I click send email button it goes from personal mail so can you please me to change my sender email address
@AutomationMadeEasy
@AutomationMadeEasy 8 ай бұрын
try adding below line of code just befor .send .SentOnBehalfOfName = "Email ID" Replace email id with actual email id with which you wish to send the emails
@JLa-lw6pe
@JLa-lw6pe 3 ай бұрын
Keep getting an error message when trying to attach file using this code above it is not reading the drive the file is in.......I am trying to attach an excel file, the file path is correct but keep getting an saying "Cannot find file. Verify the path and file name are correct". How do I fix this?
@AutomationMadeEasy
@AutomationMadeEasy 3 ай бұрын
need to see your code
@ರಘುನಾಥ್ಕೆ
@ರಘುನಾಥ್ಕೆ Жыл бұрын
Sir could you please guide how to delay the mail sending 60 seconds for each mail 🙏
@Srikanth-lb3gl
@Srikanth-lb3gl 3 ай бұрын
Hi, Could you please share the code, Thanks in Advance
@mallikarjunamavilla7479
@mallikarjunamavilla7479 2 жыл бұрын
hi the code not working me it's asking for error 424 Object required
@rasikajadhav2746
@rasikajadhav2746 Жыл бұрын
Same can we used in mac???
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
not sure about mac.
@josephkelly4310
@josephkelly4310 Жыл бұрын
Can I do this on Mac?
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
not sure if mac supports vba
@sandippatil8588
@sandippatil8588 Жыл бұрын
I wish to add body table in this
@Talkatalkk
@Talkatalkk Ай бұрын
Hello how to contact you ?
@deepshah3344
@deepshah3344 9 ай бұрын
Microsoft Outlook object library is not shown in my list
@AutomationMadeEasy
@AutomationMadeEasy 9 ай бұрын
which os are you using?
@deepshah3344
@deepshah3344 9 ай бұрын
Window 11
@KamalRaj-nl8jg
@KamalRaj-nl8jg Жыл бұрын
I get error 438 and error in attachment code line. How to debug it
@himanshudaksh6796
@himanshudaksh6796 2 жыл бұрын
Hello Sir, can we do this with the recording feature in Macro?
@AutomationMadeEasy
@AutomationMadeEasy 2 жыл бұрын
no
@sunnykunche
@sunnykunche Жыл бұрын
I created new file, when i click send message is coming as Done but email is not going out of Outlook, i enabled Microsoft Outlook object library but still it is not running in outlook
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
any error message?
@sunnykunche
@sunnykunche Жыл бұрын
@@AutomationMadeEasy No error message sir getting message as email sent but emails not going from outlook
@rodgeri.gaeseb7297
@rodgeri.gaeseb7297 Жыл бұрын
I am getting an error on line 424 error when setting strMailBody...
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
whats the error description
@sharmilaramnani1740
@sharmilaramnani1740 Жыл бұрын
I am getting some error. Can you please guide me... I can mail you the code I have written based on your tutorial...
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
what is the error description?
@sharmilaramnani1740
@sharmilaramnani1740 Жыл бұрын
@@AutomationMadeEasy The code DimObjOutlook As Object is getting highlighted and the error message is Complile error. Statement invalid outside type block.
@sharmilaramnani1740
@sharmilaramnani1740 Жыл бұрын
Would it be possible for you to review my requirement and make the necessary modifications in my file? Naturally for a fee...
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
share your requirements at info@automationandagile.com
@sharmilaramnani1740
@sharmilaramnani1740 Жыл бұрын
@@AutomationMadeEasy Sent...
@albertodiaz6915
@albertodiaz6915 Жыл бұрын
Hello! Can you please share with me a copy of the macro so I can customise it. Thanks
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
where shall i send
@shalinsharma6662
@shalinsharma6662 2 жыл бұрын
Hi, how can we add weblinks in the mail body ? please reply
@AutomationMadeEasy
@AutomationMadeEasy 2 жыл бұрын
will create a tutorial on it soon
@chitreshmhaskar6893
@chitreshmhaskar6893 2 жыл бұрын
Sir apki google forms vali coading fail ho gayi coz form shuffle mode pe hai apka video dekh ke same try kiya but getRange not defined show ho raha hai
@AutomationMadeEasy
@AutomationMadeEasy 2 жыл бұрын
getRange fail hone ka reason hain you are trying to read data from incorrect cell of the sheet. Script will wotk fine on open forms provided it is correctly designed and developed. Maine ek example diya hain but every form is different and will need customization based on the form
@sanjeebmaharjan
@sanjeebmaharjan Жыл бұрын
If only we could send it from gmail too
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
yes its certainly possible. Refer below tutorial: kzbin.info/www/bejne/mWi2YWBprZ6bfNk
@benjaminmathew8578
@benjaminmathew8578 Жыл бұрын
Can you share coding
@AutomationMadeEasy
@AutomationMadeEasy Жыл бұрын
it available on the blog automationandagile
@kwesi_AI
@kwesi_AI Жыл бұрын
Please how do I add the option to Copy someone in the email
@ayanshetty9023
@ayanshetty9023 2 жыл бұрын
Please share your excel file with us
Excel Macros & VBA - Tutorial for Beginners
50:20
Kevin Stratvert
Рет қаралды 1,2 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 72 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 20 МЛН
Learn Excel VBA to Automate Anything
14:02
Kenji Explains
Рет қаралды 444 М.
How to create VBA code in Excel to send Emails through Outlook automatically | VBA
18:00
How To Automatically Send Emails With Multiple Charts or Graphs On Gmail
12:53
Automation Made Easy
Рет қаралды 3,8 М.
Unlock Excel Secrets: Magic Search Bar You NEVER Knew About!
17:59
PK: An Excel Expert
Рет қаралды 526 М.
How to Automatically Send Emails With HTML Tables Using Excel VBA Macros
15:46
Automation Made Easy
Рет қаралды 16 М.
UUID vs INT: What’s Better For Your Primary Key?
9:40
Database Star
Рет қаралды 45 М.
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН