Automation: Send bulk emails using VBA and Outlook

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 เม.ย. 2018
  • Hello Friends,
    In this video you will learn how to send multiple email with attachment by using Excel VBA and Outlook.
    Please download this excel file from below given link:
    www.pk-anexcelexpert.com/send...
    Watch the best info-graphics and dynamic charts from below link:
    • Dynamic Graphs
    Learn and free download best excel Dashboard template:
    • Excel Dashboards
    Learn Step by Step VBA:
    • VBA Tutorial
    Website:
    www.PK-AnExcelExpert.com
    Facebook:
    / pkan-excel-expert-9748...
    Pinterest:
    / pkanexcelexpert
    Telegram:
    t.me/joinchat/AAAAAE2OnviiEk5...
    Twitter:
    / priyendra_kumar
    Send me your queries on telegram:
    @PKanExcelExpert

ความคิดเห็น • 727

  • @vanessamayer3437
    @vanessamayer3437 3 ปีที่แล้ว +2

    This is fantastic! So useful and can be used over and over. Thank you!

  • @minhnguyennhat3547
    @minhnguyennhat3547 4 ปีที่แล้ว +1

    Thank you so much!!!! Worked flawlessly and like a charm with no effort from my side! Really useful and super thank you for sending us your sample, really appreciated!! Wish you best of luck

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 ปีที่แล้ว

      Thanks for your valuable feedback. Request you to please share this with your friends and colleagues

  • @AdamMad83
    @AdamMad83 4 ปีที่แล้ว +6

    Just wanted to thank you so much for the fantastic code !! So well put together and user friendly. For those that need to put two attachments I just added a column, an extra IF and shifted column letter in the code - I'm sure @PKanExcelExpert would come up with a more eloquent solution....
    Anwayz,... just replace the portion between "msg.body = sh.Range("D" & i).Value" and "Next i" with the below and add a column in the excel so E F are for attachments and G is that sent status.
    If sh.Range("E" & i).Value "" Then
    msg.attachments.Add sh.Range("E" & i).Value
    End If
    If sh.Range("F" & i).Value "" Then
    msg.attachments.Add sh.Range("F" & i).Value
    End If
    msg.send
    sh.Range("G" & i).Value = "Sent"

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 ปีที่แล้ว +1

      Hi Adam,
      You have done fantastic job to send two attachments.

    • @ganeshkrishnan4021
      @ganeshkrishnan4021 2 ปีที่แล้ว

      I was looking for multiple attachment method .. thanks a lot for above.. I have simply repeated same formula for Columns E,F,G,H and worked like charm.. much appreciate all the help

  • @HHHGeorge
    @HHHGeorge 3 ปีที่แล้ว

    Mr. Kumar, that was a truly excellent and informative video. I am very impressed with your style of coding and presentation. Everything explained, at the right pace with working results. You now have another subscriber. Thank you.

  • @hemantjethwani380
    @hemantjethwani380 4 ปีที่แล้ว

    I have used this code and i am very happy to see the magic.....
    Just wanted to add one thing.....Files saving should be in Micro enable workbook.

  • @ResortRadar
    @ResortRadar 5 ปีที่แล้ว +2

    This is so helpful, I can't thank you enough. I have macros which split a large report into single files and then saves it to a shared drive. I can now take it a step further and automate the distribution process.

    • @petropillati9463
      @petropillati9463 3 ปีที่แล้ว +1

      Hey Benjamin can you share a video of the macro that splits a large report in sigle files and then saves it?

    • @Teesriflight
      @Teesriflight ปีที่แล้ว

      Benjamin Can you share the macro for spliting a large report into single files

    • @TheMissSELane
      @TheMissSELane ปีที่แล้ว

      @@Teesriflight th-cam.com/video/48oUxaL7X6c/w-d-xo.html

  • @chajam
    @chajam 2 ปีที่แล้ว +1

    dude, thank you so much! I was looking for a simple VBA that could do the work until I found your video, and that’s all I needed.

  • @virak981
    @virak981 4 ปีที่แล้ว +1

    Very appreciated and thank you for your kind sharing the knowledge. All the best to you.

  • @nemaznachenie9997
    @nemaznachenie9997 3 ปีที่แล้ว +1

    you are amazing, the way you show everything, how you explain it and your instructions are fantastic. Thank you very much. I liked your video and subscribed to your channel.

  • @SuperHanme
    @SuperHanme 5 ปีที่แล้ว +1

    Dear Sir, Thank you so much. You are so smart software developer. I learn a lot from you. I appreciate it.

  • @0sutra0
    @0sutra0 4 ปีที่แล้ว +2

    This is a life-saver! You are a VBA hero

  • @George-gf9tu
    @George-gf9tu 4 ปีที่แล้ว +1

    Legend mate. Thank you very much for this.

  • @lorddalhousie807
    @lorddalhousie807 3 ปีที่แล้ว +2

    Thanks Pal, you really helped. "Thanks" is just the word but I mean it a lot more than this.

    • @PKAnExcelExpert
      @PKAnExcelExpert  3 ปีที่แล้ว

      Thanks for your valuable feedback

    • @lorddalhousie807
      @lorddalhousie807 2 ปีที่แล้ว

      @@othernewsid2 I just wanted to find a bad name with which I ever do some bad things. So I found this name. I always use this email for fake registration, watching po*n etc. I hate Lord Dalhousie who ruled over us for years. I'm an Indian and I love my nation.

  • @balrajvirdee1087
    @balrajvirdee1087 ปีที่แล้ว +2

    Thanks again brother, really appreciate you putting this tutorial out there. We can all learn a lot from you. 👍🏽

  • @Divya_HareKrishna
    @Divya_HareKrishna 5 ปีที่แล้ว

    Its very helpful thanks a lot 👍
    And
    Thank u for sharing file as well..

  • @gabriela_sd260
    @gabriela_sd260 2 ปีที่แล้ว

    Best teacher! Best of the Best! Best videos! Thank you, Kumar!

    • @PKAnExcelExpert
      @PKAnExcelExpert  2 ปีที่แล้ว

      Thanks for your valuable feedback🙏

  • @vsrblr
    @vsrblr 5 ปีที่แล้ว +1

    Nice video. Explanation and making was awesome. Lucky to have your videos on this subject

  • @deepamanmappy
    @deepamanmappy 3 ปีที่แล้ว +1

    That's really incredible thanks a lot for sharing this wonderful experience

  • @Tat-cx1lr
    @Tat-cx1lr 5 ปีที่แล้ว

    Merci. Simple et efficace. Amicalement

  • @kunalkhandelwal5293
    @kunalkhandelwal5293 5 ปีที่แล้ว +1

    Thanks a lot. Amazing macro. Very useful

  • @anooruproy3670
    @anooruproy3670 5 ปีที่แล้ว +1

    U R 2 Good. People like u are required in TH-cam.

  • @letsreasontogether3496
    @letsreasontogether3496 4 ปีที่แล้ว +1

    Thank you this is fantastic. Just what I needed!!!
    1 question... How do I format the text in the body?

  • @sumitacer
    @sumitacer 4 ปีที่แล้ว +1

    Very appreciated and thank you for your kind sharing the knowledge. All the best to you

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 ปีที่แล้ว

      Thanks for your valuable feedback

    • @sumitacer
      @sumitacer 4 ปีที่แล้ว

      @@PKAnExcelExpert Sir , i m unable to Joined in Telegram

  • @stefanozappala9625
    @stefanozappala9625 4 ปีที่แล้ว +1

    Thanks man you are a life saver!!!

  • @arjunbabu83
    @arjunbabu83 4 ปีที่แล้ว +1

    Thanks for very much for the video.
    I wrote my first program learning from you.

  • @pawansharma-wo3xh
    @pawansharma-wo3xh 6 ปีที่แล้ว

    Extremely useful for sending the bulk mails
    Very very creative PK...... great
    However little difficult to understand..

  • @marcohama1
    @marcohama1 3 ปีที่แล้ว

    Thank you, its helped me a lot

  • @trevormeisel
    @trevormeisel 6 ปีที่แล้ว +2

    Excellent video - direct and to the point. I think you forgot the very last part where you update the sent column but most users should find that easy enough to do.
    Thanks for the video and keep up the great work. I'm going to look through all your other videos now with the time I have saved on this particular challenge.
    Regards, Trevor

  • @veemagaia8892
    @veemagaia8892 2 ปีที่แล้ว +1

    Thank you so much for this, eternal blessings to you

  • @redguy1993
    @redguy1993 2 ปีที่แล้ว +1

    thank you so much for this. you're a lifesaver

  • @johnyouseph4038
    @johnyouseph4038 4 ปีที่แล้ว +1

    Thanks a lot. This one I was trying to fix it. This video helped a lot 👍👍

  • @shamyukthastudio7817
    @shamyukthastudio7817 4 ปีที่แล้ว

    Thank you so much. it's working fine.

  • @infotech5520
    @infotech5520 ปีที่แล้ว +1

    Thank you so much for sharing your knowledge its absolutely a fantastic short and sweet code

  • @haniff4277
    @haniff4277 6 ปีที่แล้ว

    PK. I enjoy your training videos. Keep it up....

  • @tulip24r
    @tulip24r 5 ปีที่แล้ว +1

    Amazing tutorial.

    • @PKAnExcelExpert
      @PKAnExcelExpert  5 ปีที่แล้ว

      Thanks for your valuable feedback. Request you to please share this with your friends and colleagues

  • @viveksatpute3807
    @viveksatpute3807 4 ปีที่แล้ว

    Vivek Satpute
    Hello PK its absolutely a fantastic short and sweet code. I have been following some of your videos on TH-cam and could conclude that codeing is exceptionally professional and easy to understand. I have been working in Automotiove OEMs from past 22 years and found this very useful for automating some of my team's task to increase their efficiency.
    The only question in this auto email , when there is a promt to allow sending mails appearing on the screen , can we not overcome this so that the mails can go without any decision from user.

  • @indorecablefaultworks8962
    @indorecablefaultworks8962 5 ปีที่แล้ว +1

    Thank you so much . it is very good.

  • @Teesriflight
    @Teesriflight ปีที่แล้ว +2

    Oh My God, PK Bhai. You killed it man. You made me a hero in my office. Thank you very much. God bless you bhai :)

    • @PKAnExcelExpert
      @PKAnExcelExpert  ปีที่แล้ว

      Thanks for your valuable feedback🙏

    • @javedrasheed9200
      @javedrasheed9200 ปีที่แล้ว

      Hi sir ...i have a few doubts about the macro.. kindly assist me

  • @sp-prakash
    @sp-prakash 4 ปีที่แล้ว +2

    really useful information from your videos.

  • @ajayverma-hn3zt
    @ajayverma-hn3zt 3 ปีที่แล้ว

    Thanks you sir ..for your support 🙏🙏

  • @harshahittara-gedara6647
    @harshahittara-gedara6647 5 ปีที่แล้ว

    Hi PK, thank you so much for sharing your knowledge with us. You have done excellent job explaining things step by step. My email signature has company logo picture and special texts. I was able to include signature with company logo by using your “Send Mail with Snapshot” VBA codes. But I don’t know how to combine both this VBA and Snapshot VBA so I could send multiple mails with attachments while my signature will display as desired. Can you please help me?

  • @jwalker4765
    @jwalker4765 4 ปีที่แล้ว +8

    Awesome video! Thanks for sharing! Two questions:
    1. Is there a way to add a signature into the text body?
    2. Is there a way to send the e-mails from a shared e-mail address in Outlook instead of your primary e-mail address?

    • @excelonlineadvisor
      @excelonlineadvisor 4 ปีที่แล้ว

      1. You can add the signature on the mail text body.
      2. Set your default e-mail address as primary email account in outlook. Hope it will help.

    • @mc.roneilfuggan1780
      @mc.roneilfuggan1780 3 ปีที่แล้ว +1

      i have image signature how to add that

  • @mayelasanchez560
    @mayelasanchez560 5 ปีที่แล้ว

    Thank you so much for this video. I was wondering if you can tell me how I can I attach different type of files (like PDF, Excel, DOC) all in one folder

  • @rohannayal2818
    @rohannayal2818 6 ปีที่แล้ว

    Thank you very much

  • @landwaysinternational1333
    @landwaysinternational1333 5 ปีที่แล้ว

    Hello, congratulations for the really nice work. What if I want to include several columns in the body section ?

  • @reubenmather8108
    @reubenmather8108 5 ปีที่แล้ว

    thnx sir ji..........for making the video

  • @yogeshjav8089
    @yogeshjav8089 3 ปีที่แล้ว +1

    Thank You Sir, It was great help

  • @noobgamerof90s
    @noobgamerof90s 2 ปีที่แล้ว +1

    Thank you so much Sir it helped me in office to minimise my workload ❤️❤️

  • @bharatchaudhari5694
    @bharatchaudhari5694 4 ปีที่แล้ว

    Great Help.
    Just suggest to make it more powerful.
    1. How to stop if already emails that are shown "sent" status.
    2. Schedule for particular date and time.

  • @marshallrego1053
    @marshallrego1053 5 ปีที่แล้ว

    Hello,
    This is an amazing video, I just need help on how can you send only a particular row data in a table format in the outlook body could you please help

  • @33cem34
    @33cem34 6 ปีที่แล้ว +1

    Thank you PK, and one more question:how to add "SendUsingAccount" function to select from different Outlook accounts?

  • @asadhusain4608
    @asadhusain4608 6 ปีที่แล้ว

    Hi PK! Very useful video. I have a slightly different requirement. I created HTML based email (saved as DRAFT) which I want to send out to several recipients. As excel will NOT support HTML format, what amendment(s) do I need to make in your macro so that instead creating a mail, the macro uses a particular draft email. Will be a great help. Appreciate your work. Cheers

  • @keerthikap4915
    @keerthikap4915 5 ปีที่แล้ว

    Hi, the video is useful. Thank you so much. Please share us the code for Status field(how to update the status column)

  • @vizzamis4088
    @vizzamis4088 3 ปีที่แล้ว +1

    Thank you Sir
    It's really great

  • @gunjangyansagar4571
    @gunjangyansagar4571 2 ปีที่แล้ว

    Thanks sir, very happy really it for my official help..

  • @m10k20032000
    @m10k20032000 5 ปีที่แล้ว

    ? Thank you very much for the wonderful video, i have one question Can i add photo to the body like my signature

  • @zyvsoo311
    @zyvsoo311 5 ปีที่แล้ว +1

    Thanks for this video.
    I want to know how to send the Excel data with use range of any person's name or code or drop down via VBA paste in outlook mail body with the common mail draft..
    If possible please help me friend

  • @TastyHubv
    @TastyHubv 5 ปีที่แล้ว

    Thanks for the video sir. For attachment we have to specify path specific folder.. its good.. what if file name changing everyday and send that latest file as an attachment... Pls

  • @HRVS_DZ
    @HRVS_DZ 2 ปีที่แล้ว +1

    Thanks you're awsome dude !

  • @riteshvishwakarma9595
    @riteshvishwakarma9595 4 ปีที่แล้ว +2

    Thank you for share wonderful video, how we can add one more attachment in same mail (i want to sent mail with 2-3 attachment). please suggest.

  • @ashishsachdev6154
    @ashishsachdev6154 5 ปีที่แล้ว +1

    Thankyou PK, your videos are so informative and help us a lot to make our job easier. Please keep on sharing your knowledge an God Bless you. I would request for one query that can we set a timer of multiple reports I have made in advance and fix it in excel so that the reports would automatically get sent by its defined timeline.

    • @PKAnExcelExpert
      @PKAnExcelExpert  5 ปีที่แล้ว

      Thanks for your valuable feedback. Yes we can use schedule in VBA. I will definitely try to make such video very soon.

  • @environmentalsustainabilit1102
    @environmentalsustainabilit1102 2 ปีที่แล้ว +1

    Very useful. Thanks!

  • @MrPorkered
    @MrPorkered 5 ปีที่แล้ว +1

    Hi PK thanks for this awesome video, but how do I insert my outlook signature to all the emails? And also how should I format the text to bold or different font. Thank you.

  • @Jyotisharma-rr9ve
    @Jyotisharma-rr9ve 6 ปีที่แล้ว

    Thanks for the Amazing Video PK. Can you please tell me how can I sent multiple attachments

  • @SN-fg3rc
    @SN-fg3rc 4 ปีที่แล้ว

    This is an excellent video. Need to know how can i bold or change format for a particular line

  • @JyotiKumari-tm4kz
    @JyotiKumari-tm4kz 4 ปีที่แล้ว +4

    I needed to send few thousand emails, which I was able to do it within with minutes with your code...thanks

  • @sanavianwar
    @sanavianwar 5 ปีที่แล้ว

    Thank you so much Brother..........

  • @joelrajan3197
    @joelrajan3197 2 ปีที่แล้ว

    Thankyou PK. Great video. Is there a way to insert the table - Range(("A:G") & i) for each row in a loop

  • @bachhoangquan3631
    @bachhoangquan3631 5 ปีที่แล้ว

    Hi @PKanExcelExpert, great video sir !!!!. I just have 1 question: How should I modify this VBA code to send multiple attachments in the email ?

  • @sushilchaudhari214
    @sushilchaudhari214 5 ปีที่แล้ว

    Thanks for the video. I have a requirement where an email body has multiple hyperlinks in it. can you pls help?

  • @AlyssonLucatto
    @AlyssonLucatto 4 ปีที่แล้ว

    Amazing video and tutorial, just on thing, the second email on my list is receiving 2 attachment, and the third email 3 attachments, can you help me with this?

  • @jannacalaunan3413
    @jannacalaunan3413 6 หลายเดือนก่อน +1

    This is GOLD.

  • @ajithprasath7815
    @ajithprasath7815 3 ปีที่แล้ว

    Thank you very much PK san. Thank you for posting videos. I want how to automatic remainder mail in Excel VBA programming. Please guide me

  • @prajnanks
    @prajnanks 4 ปีที่แล้ว

    Thank you very much👍👍
    But i also want to learn reminder mail bulk with the same subject

  • @divinemusic1822
    @divinemusic1822 5 ปีที่แล้ว

    Hi PK It was great code, could you tell me how to put filters to the flow of emails .

  • @aleashamascarenhas9906
    @aleashamascarenhas9906 4 ปีที่แล้ว

    thanks very much Sir for this!! it works perfectly except when the first row has an attachment path and the second row does not. The second email is displayed with the first attachment. Would you know how to resolve?

  • @ivans9655
    @ivans9655 4 ปีที่แล้ว

    The best video, thank you! Do you now how to use HTML with VB?

  • @anakalandarishvili9981
    @anakalandarishvili9981 3 ปีที่แล้ว

    hi this is amazing tool and thanks for the template. is it possible to add signature after body?

  • @bonithird6303
    @bonithird6303 4 ปีที่แล้ว

    I wanted to send not on my email alias but from a team distro.. is this possible? Great tutorial by the way. Helped me a lot.

  • @BaankeBaabu
    @BaankeBaabu 3 ปีที่แล้ว

    you are legend man..but only issue m facing is displaying and able sent manually received the same mail in inbox...greaatttt dude......but ple solve the issue not going auto...

  • @vishalshinde29
    @vishalshinde29 5 ปีที่แล้ว

    Hi PK...Amazing macro...Thanks a ton!!!! One query, how con we modify this macro for using shared Outlook Account instead of Primary? Awaiting for your reply...

  • @bajramo1
    @bajramo1 4 ปีที่แล้ว

    Hi, wonderful project, but instead of Outlook, can I use Thunderbird mail client?

  • @AnupKumar-bk4gj
    @AnupKumar-bk4gj 3 ปีที่แล้ว

    Thanks PK, really this will help me a lot. What i should do if i have more than one attachments. Kindly let me know. Thanks

  • @naveenpandey7092
    @naveenpandey7092 6 ปีที่แล้ว

    Sir, your video is realy helpful. I would like to know how can I send email from generic email id instead of personal email id. Looking for your response, please suggest.. Thanks in advance

  • @SA-nq2il
    @SA-nq2il 5 ปีที่แล้ว

    This is really helpful video...thank you...
    Sir...how to attach signature html file in your coding can you please help? And is there any option for clicking allow button again and again

  • @loldarshan4235
    @loldarshan4235 5 ปีที่แล้ว +6

    Thank you so much for this ,can u plz tell me how can we add image to body ,or how can we send bulk image mail? Plz

    • @kamalakkannank2239
      @kamalakkannank2239 3 ปีที่แล้ว +1

      Me also please

    • @wendyanugrah
      @wendyanugrah 3 ปีที่แล้ว

      Yes please, can u share with pictures in body emails?

    • @adamliang8567
      @adamliang8567 3 ปีที่แล้ว

      YES pleasseeee

    • @raselmia961
      @raselmia961 3 ปีที่แล้ว

      Me also please...otherwise 😭

  • @willleak3737
    @willleak3737 5 ปีที่แล้ว +1

    Thank you so much for this video! I have one question....how would I modify this macro to send the email from a shared outlook account instead of my primary outlook account?

    • @wweindiahighlights
      @wweindiahighlights 3 ปีที่แล้ว

      Dear will.. That's what am looking for.. Do you have the solution?

  • @enedakosta7359
    @enedakosta7359 5 ปีที่แล้ว

    Hello Sir, thank you for your macro.It was my first one and i'really excited. It doesn't work for me the subject. Can you please help? thanks indeed

  • @deepakmittal9449
    @deepakmittal9449 5 ปีที่แล้ว +1

    Very good work.

  • @FRAN-vd9rl
    @FRAN-vd9rl 3 ปีที่แล้ว +3

    Hi, great simple macro you created, cheers!, Two questions: 1) what if i want to send more than one attachment? is it possible? 2) how can i insert some image in the body of the email? or some type of formatting like bold underlines sizes? Thanks

  • @aparnavegendla
    @aparnavegendla 5 ปีที่แล้ว +1

    thanks a lot!!

  • @massimoaldorasi9850
    @massimoaldorasi9850 4 ปีที่แล้ว +1

    Thank you so much PK, this is amazing! Is there a way to add read receipt and mark as important?

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 ปีที่แล้ว

      Thanks for your valuable feedback. Yes it is possible. I will definitely try to make such video

    • @midhunkannan4801
      @midhunkannan4801 4 ปีที่แล้ว

      Hi bro when we can expect this video?

  • @Shlok0811
    @Shlok0811 5 ปีที่แล้ว

    hi,
    i had seen your video and it's very help full, just required a help on the same video with a extra as per this video we are attaching the attachment from mentioned cells with that i required to open the same workbook and copy data from specific sheet from that workbook and paste the summary on the body, can we do this? please rply me on this,

  • @midhunkannan4801
    @midhunkannan4801 4 ปีที่แล้ว

    Hi bro,your video really helped me a lot.how do I send with high importance?and is there any option to get automatic notification in excel with response received in a column?

  • @xiang_lu
    @xiang_lu 4 ปีที่แล้ว

    MANY THANKS! PK. Just one question, how to create a status sign, "sent"? Thanks again.Lux

  • @redguy1993
    @redguy1993 2 ปีที่แล้ว +1

    Hi, may i know if there's a way to insert a table in the 'body' part based on a cell value?

  • @bridgetalulema3312
    @bridgetalulema3312 4 ปีที่แล้ว +2

    Hi! This was very helpful! I noticed in column F you have a status section. How do you tell the macro that in column F, the email has been sent. That's very helpful to make sure you have a double check the email has been sent and not rehitting the macro again to send a duplicate email.
    I also noticed that the font in the body of the email is small, is there a way to add a code to have the font a certain size in the email. Appreciate any help! Thanks!

    • @AMStallions
      @AMStallions 4 ปีที่แล้ว +1

      Same query. PK Excel expert we demand an answer.

  • @vishalsingh127
    @vishalsingh127 5 ปีที่แล้ว

    Very nice bro

  • @krunalgandhare4026
    @krunalgandhare4026 4 ปีที่แล้ว +1

    Amazing!! Keep up the good work sir! saved lot of my time! But faced difficulty sending mails via outlook using gmails' email id.. please help to fix!

  • @DineshKalel
    @DineshKalel 5 ปีที่แล้ว

    Sir, this is very useful... Now I want get data from out look to excel . but I want only table data. Please help on this with VBA thanks in advanced.