Automation: Send bulk emails using VBA and Outlook

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 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.

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

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

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

      Thanks for your valuable feedback🙏

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

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

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

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

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

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

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

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

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

    Thank you so much for this, eternal blessings to you

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

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

    really useful information from your videos.

  • @jonneygadder
    @jonneygadder 2 หลายเดือนก่อน

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

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

    You are the best man😎😎

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

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

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

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

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

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

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

    Very useful. Thanks!

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

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

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

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

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

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

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

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

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

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

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

    This is GOLD.

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

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

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

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

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

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

    you are the best

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

    Amazing priyendra

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

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

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

    1) How can we save these emails into Drafts? So that i can check and send them later. 2) Does this work with Outlook web app too?

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

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

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

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

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

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

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

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

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

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

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

      Great suggestion! I will try to create a video on this topic.

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

      @@PKAnExcelExpert Thank you

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

  • @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: th-cam.com/video/4buxxnoNMKE/w-d-xo.html. This should give you a clear, step-by-step walkthrough. Let us know if you have any other questions!

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

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

    Nice video, if I want to select sheets within workbook and send email how to achieve that?

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

  • @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:
      th-cam.com/video/4buxxnoNMKE/w-d-xo.html

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

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

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

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

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

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

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

    Sir you Rock 👍

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

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

    Thank You Sir, It was great help

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

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

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

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

    Amazing bro 👌👌👌👌👌😃😃👍

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

    Thanks you're awsome dude !

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

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

    Thanks man you are a life saver!!!

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

    Thank you Sir
    It's really great

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

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

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

    Very good work.

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

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

    Thank you so much. May i ask how to add the status "Sent" as it shows in your video. but there are no code for it?

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

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

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

    GREAT HELP SIR!! IS THERE A WAY TO ADD SIGNATURE TO THE BODY THOUGH?

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

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

    wonderful and helpful video, can you help me how to change the default email ID or send the email from a different email ID.

  • @НикитаБелов-ъ2т
    @НикитаБелов-ъ2т 2 ปีที่แล้ว +1

    Thank you. Helpful code. How to send body with html text?

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

      Please watch below video for HTML body-
      th-cam.com/video/q9kTgTghN2g/w-d-xo.html

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

  • @sharadpatel07
    @sharadpatel07 5 หลายเดือนก่อน

    good video its help alot , but not able to download excel sheet from link..

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

    Thank you so much. it's working fine.

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

    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

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

    thanks PK

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

    excellent work. quick question, what if in each bodu you want to type Hi [name] and the rest of your text, is there any way to automatize this ?

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

    Very nice sir... Is it possible to send bulk emails using gmail or rediff. If yes then plz make video...

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

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

    It's very helpful. I have copied the code & it's working. But sir I did not get the interface with "allow" option.

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

      Thanks for your valuable. It means you have already allowed programmatic access. So don't worry 😉

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

      @@PKAnExcelExpert sir but I want get the interface. Can you tell me how I get this

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

    awesome video tutorial
    easy to understand.
    also
    is it possible to use a different email program other than outlook?
    is it a settings in excel or do I need to change "Outlook.application"?
    I did try to change it but its just an error any tips?

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

    Thank you sir ...
    Sir is it possible to send same mails using Gmail...
    If yes, please make video on it...
    Please reply...

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

    Excellent vidio it work very well. Can you explain how to do this using WhatsApp with PC

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

    Nice!

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

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

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

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

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

    Please make same video using Gmail account instead of outlook...
    It will save my time...
    Please reply sir...

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

      will upload soon

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

      @@PKAnExcelExpert desperately waiting for your video...thank you very much sir....

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

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

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

    Thank you, its helped me a lot

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

    Very good thanking you. Pls. Tell me, how can I attach two or more attachment ?

  • @Tours.Travels91
    @Tours.Travels91 3 ปีที่แล้ว

    As per your given precious guidelines, I have done it successfully except getting message in specified "Mails Sent". The message how to show in specified field ? Help me.

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

    Merci. Simple et efficace. Amicalement

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

    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.