Automation: Send bulk emails using VBA and Outlook

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 723

  • @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 3 роки тому

      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

  • @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.

  • @chajam
    @chajam 3 роки тому +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.

  • @balrajvirdee1087
    @balrajvirdee1087 Рік тому +2

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

  • @Teesriflight
    @Teesriflight 2 роки тому +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  2 роки тому

      Thanks for your valuable feedback🙏

    • @javedrasheed9200
      @javedrasheed9200 2 роки тому

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

  • @gabriela_sd260
    @gabriela_sd260 2 роки тому

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

  • @0sutra0
    @0sutra0 4 роки тому +2

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

  • @anooruproy3670
    @anooruproy3670 6 років тому +1

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

  • @vanessamayer3437
    @vanessamayer3437 3 роки тому +2

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

  • @lorddalhousie807
    @lorddalhousie807 4 роки тому +2

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

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 роки тому

      Thanks for your valuable feedback

    • @lorddalhousie807
      @lorddalhousie807 3 роки тому

      @@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.

  • @jonneygadder
    @jonneygadder 2 місяці тому

    If I had to send 2000 mails then I had to click 2000 times.. great I love it

  • @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

  • @arjunbabu83
    @arjunbabu83 4 роки тому +1

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

  • @nemaznachenie9997
    @nemaznachenie9997 4 роки тому +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.

  • @infotech5520
    @infotech5520 2 роки тому +1

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

  • @noobgamerof90s
    @noobgamerof90s 3 роки тому +1

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

  • @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.

  • @veemagaia8892
    @veemagaia8892 2 роки тому +1

    Thank you so much for this, eternal blessings to you

  • @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

  • @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

  • @redguy1993
    @redguy1993 3 роки тому +1

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

  • @sp-prakash
    @sp-prakash 4 роки тому +2

    really useful information from your videos.

  • @vsrblr
    @vsrblr 5 років тому +1

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

  • @allengilbert8836
    @allengilbert8836 3 роки тому +1

    You are the best man😎😎

  • @johnyouseph4038
    @johnyouseph4038 4 роки тому +1

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

  • @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.

  • @HRVS_DZ
    @HRVS_DZ 3 роки тому +1

    Thanks you're awsome dude !

  • @environmentalsustainabilit1102
    @environmentalsustainabilit1102 2 роки тому +1

    Very useful. Thanks!

  • @jannacalaunan3413
    @jannacalaunan3413 10 місяців тому +1

    This is GOLD.

  • @pawansharma-wo3xh
    @pawansharma-wo3xh 6 років тому

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

  • @deepamanmappy
    @deepamanmappy 3 роки тому +1

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

  • @stefanozappala9625
    @stefanozappala9625 5 років тому +1

    Thanks man you are a life saver!!!

  • @thebaigs258
    @thebaigs258 4 роки тому +1

    Amazing priyendra

  • @rabinderca
    @rabinderca 4 роки тому +1

    you are the best

  • @virak981
    @virak981 5 років тому +1

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

  • @gunjangyansagar4571
    @gunjangyansagar4571 3 роки тому

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

  • @jwalker4765
    @jwalker4765 5 років тому +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 4 роки тому +1

      i have image signature how to add that

  • @ashishvariya1960
    @ashishvariya1960 4 роки тому +1

    Sir you Rock 👍

  • @MrRanjitsihag
    @MrRanjitsihag 4 роки тому

    Amazing bro 👌👌👌👌👌😃😃👍

  • @yogeshjav8089
    @yogeshjav8089 4 роки тому +1

    Thank You Sir, It was great help

  • @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.

  • @shamyukthastudio7817
    @shamyukthastudio7817 4 роки тому

    Thank you so much. it's working fine.

  • @vizzamis4088
    @vizzamis4088 4 роки тому +1

    Thank you Sir
    It's really great

  • @ajayverma-hn3zt
    @ajayverma-hn3zt 4 роки тому

    Thanks you sir ..for your support 🙏🙏

  • @haniff4277
    @haniff4277 6 років тому

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

  • @Tat-cx1lr
    @Tat-cx1lr 5 років тому

    Merci. Simple et efficace. Amicalement

  • @marcohama1
    @marcohama1 4 роки тому

    Thank you, its helped me a lot

  • @deepakmittal9449
    @deepakmittal9449 5 років тому +1

    Very good work.

  • @kunalkhandelwal5293
    @kunalkhandelwal5293 5 років тому +1

    Thanks a lot. Amazing macro. Very useful

  • @Divya_HareKrishna
    @Divya_HareKrishna 5 років тому

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

  • @ursvenky6394
    @ursvenky6394 5 років тому +1

    Ur explanation is awesome, can u do video on how get email info? Only unread mails, only readmails, which account like that? If we have multiple accounts, we need to get from all inbox, or selected accounts. Please pk it is more helpful to ur followers. Thank u in advance.

    • @PKAnExcelExpert
      @PKAnExcelExpert  5 років тому

      Thanks for your valuable feedback. I will definitely try to make such video very soon. It is a great suggestion.

  • @avisekguchhait3508
    @avisekguchhait3508 3 роки тому +1

    Incredible.

    • @PKAnExcelExpert
      @PKAnExcelExpert  3 роки тому +1

      Thanks for your valuable feedback

    • @avisekguchhait3508
      @avisekguchhait3508 3 роки тому

      @@PKAnExcelExpert but some error sir, on attachment. Can you help me sir?

  • @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.

  • @indorecablefaultworks8962
    @indorecablefaultworks8962 6 років тому +1

    Thank you so much . it is very good.

  • @sanavianwar
    @sanavianwar 6 років тому

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

  • @tajuddinidrisi6610
    @tajuddinidrisi6610 3 роки тому +1

    thanks PK

  • @BaankeBaabu
    @BaankeBaabu 4 роки тому

    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...

  • @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!

  • @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

  • @shantaneelhalder2692
    @shantaneelhalder2692 2 роки тому

    Thank you the video. Very helpful. Can you please also help, as how I can add different sets of email I'd in the cc column?

  • @katerinabilleisen6613
    @katerinabilleisen6613 2 роки тому

    This is great! My question is how can you automatically add signature to all the outgoing emails? I have it set to add signature automatically when I send emails but it doesn't seem to work with this bulk email file.

  • @ibrahim82649
    @ibrahim82649 Рік тому

    Hey PK, you videos are very useful. I am having tried working on my own template and followed every procedures you have shared but when it comes to running the macro to display the emails my work book just keeps running the out look application doesnt pop up.

  • @aussieraver7182
    @aussieraver7182 3 роки тому +1

    Nice!

  • @ahmedsherif5698
    @ahmedsherif5698 3 роки тому +1

    Thank you

  • @George-gf9tu
    @George-gf9tu 4 роки тому +1

    Legend mate. Thank you very much for this.

  • @DineshVishwakarma-sp5uf
    @DineshVishwakarma-sp5uf 5 років тому +1

    Very Good

  • @DeepakSingh-pd8nu
    @DeepakSingh-pd8nu 3 роки тому +1

    thank you sir

  • @harryharry2109
    @harryharry2109 2 роки тому

    This is super useful. I want to know how can i bypass this allow button so that I don't have to click on it everytime while sending the mail.

  • @vishalsingh127
    @vishalsingh127 6 років тому

    Very nice bro

  • @ajithprasath7815
    @ajithprasath7815 4 роки тому

    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

  • @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.

  • @reubenmather8108
    @reubenmather8108 5 років тому

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

  • @ekosoejudi9998
    @ekosoejudi9998 9 місяців тому

    god bless you

  • @amitmishra1513
    @amitmishra1513 3 роки тому +1

    Can we send emails through outlook, email content is present in specific word document and email list present in excel file using excel OR word vba need to send emails like mail merge??

  • @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

  • @rohannayal2818
    @rohannayal2818 6 років тому

    Thank you very much

  • @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.

  • @durgesh91tomar
    @durgesh91tomar 6 років тому

    Awesome... Dost..

  • @arjunc1936
    @arjunc1936 4 роки тому

    Thank you bro

  • @amitmishra1513
    @amitmishra1513 3 роки тому +1

    Nice explanation!!!
    Can we send email from gmail account using excel vba?

  • @selimakcakil2325
    @selimakcakil2325 5 років тому

    Thank you it is very simple and working perfectly. Just one question if I would like to send more than 1 attachment to the same person how should I adjust attachment column. Thank you

    • @selimakcakil2325
      @selimakcakil2325 5 років тому +1

      I fixed with adding additional column (F) than repeated code for column E. Thank you again.

    • @PKAnExcelExpert
      @PKAnExcelExpert  5 років тому

      Thanks

  • @sagarmarri2728
    @sagarmarri2728 4 роки тому

    Awesome.....if we don't want to click on allow everytime...what is the option ???

  • @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

  • @vijaykulkarni7724
    @vijaykulkarni7724 4 роки тому +1

    Many thanks for sharing such wonderful video. I also want to know that do you have any Macro by which we can send reminder on same email which we have send using this Macro.

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 роки тому

      Will upload soon

    • @vijaykulkarni7724
      @vijaykulkarni7724 4 роки тому

      @@PKAnExcelExpert thanks even if you share code to pop out email in reply all mode using subject will also do

  • @AmitRoy-xg8ph
    @AmitRoy-xg8ph 4 роки тому +1

    Amazing.... Thnx for sharing the Tutorial PK. Can we send multiple attachments like this to multiple person?

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 роки тому +1

      Yes, absolutely

    • @AmitRoy-xg8ph
      @AmitRoy-xg8ph 4 роки тому

      @@PKAnExcelExpert can you please share a video on that, how can we send a mail through vba with multiple attachment please...

  • @eaglehew9518
    @eaglehew9518 3 роки тому

    Thanks, is very helpful. Kindly need your help, may I know how to insert the attachment?

  • @preethamacharya
    @preethamacharya 4 роки тому +4

    How can I do Allow to all at the end of the macro as I am looking to send it across to 400 odd participants?

  • @ben-thought1182
    @ben-thought1182 4 роки тому +1

    Thank you pk. How about the status as sent? How do I declare it in vb to display if the message is sent?

  • @letsreasontogether3496
    @letsreasontogether3496 5 років тому +1

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

  • @vacilando86
    @vacilando86 3 роки тому

    Thank you so much. it's working fine. But I would lite to send all emails automatically without Allow buton. How to build it ?

  • @prajnanks
    @prajnanks 4 роки тому

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

  • @nihitmhatre2241
    @nihitmhatre2241 Рік тому

    Thank you Sir for awesome video, I’m learning macro and I try this code. I save this file in my system and try to change file name but after changing file name I’m getting error

  • @melissaaguirre3193
    @melissaaguirre3193 3 роки тому

    Hello thanks so much for this- can I add a line to change the from address ? I use a generic email address to send out mass emails but outlook defaults to my email instead of the generic one - maybe adding msg.from? And adding a column with the generic email address?

  • @kehindeolajide6870
    @kehindeolajide6870 2 роки тому

    Great Video and really helpful. Thanks for sharing. one question pls. is there a way to add hyperlinks to the email body instead of attachment?

  • @davidecardella8585
    @davidecardella8585 2 роки тому

    Hi mate, this video is amazing! Really. I have just two questions. Can you please help on on to set the sender email (msg.from looks not working) and on how to ask the tool to send just an email corresponding to a specific line istead of the entire sheet? Thanks in advance

    • @PKAnExcelExpert
      @PKAnExcelExpert  2 роки тому

      To add the "From" email id, you can watch the below video:
      ua-cam.com/video/4buxxnoNMKE/v-deo.html

  • @kaknikachamroeun4810
    @kaknikachamroeun4810 6 років тому +2

    Thank so much for your useful VBA. However, how can I also include my HTML outlook signature when running this code? Really appreciate for your kind help.

    • @PKAnExcelExpert
      @PKAnExcelExpert  6 років тому

      Thanks for your valuable feedback

    • @kaknikachamroeun4810
      @kaknikachamroeun4810 6 років тому +2

      @@PKAnExcelExpert Please also help me what VBA code should I add to also include my outlook signature? Thank in advance.

    • @vipulshankar1031
      @vipulshankar1031 4 роки тому

      Sir, how we can send automatic email reminders as if stocks gets empty, it will send mail automatically

  • @rrvillareal2011
    @rrvillareal2011 3 роки тому +1

    How about, if you want it to automatically, allow, instead of you clicking allow all the time? What code do you use?

  • @mdasifiqbal1972
    @mdasifiqbal1972 3 роки тому

    I have been using this XML, but can you also develop and xml which identifies unique statement to be sent not as an attachment but on the body of the mail

  • @MultiChanelo
    @MultiChanelo Рік тому

    Hello PK, thanks alot for sharing such important tips.
    But I have a question : how do I do to attach more than one file on each email?

    • @PKAnExcelExpert
      @PKAnExcelExpert  Рік тому

      Of course! If you're looking for a more detailed guide on how to attach multiple files to an email, we've already created a video on this. Please follow this link to view the video: ua-cam.com/video/4buxxnoNMKE/v-deo.html. This should give you a clear, step-by-step walkthrough. Let us know if you have any other questions!

  • @loldarshan4235
    @loldarshan4235 6 років тому +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