We can send email using Gmail, Hotmail or Yahoo directly from Excel using VBA. View the complete code and more details: www.exceltraini...
Пікірлер: 144
@bobarnold44358 жыл бұрын
One of the best instructional videos I've seen. Well paced, multiple explanations of the same concept, and I particularly liked the way the instructor created problem and then worked through them. I feel watching multiple videos on the subject is not necessary. Tkx
@amjadansaree6 жыл бұрын
Hello Mr Dinesh Sir, You are my Teacher like "eklavya Guriji" for All of your Tutorials Thank you very very very much for all of your tutorial, This is really work fine
@cavokrider6 ай бұрын
OMG! This is the Best video ever! Thank you!
@eprzepiora6 жыл бұрын
Thank you very much; It took me 5 mins to copy your code and integrate this within my application, This is the best piece of code I have seen for a bit. You also explained it with such clarity, Greetings from London, UK Edward
@awanasetia8 жыл бұрын
Hello Mr Dinesh, You are my Hero :D, Thank you very much for all of your tutorial, This is really works.
@muhhd1233 жыл бұрын
Thank you Daniesh for the helpful video.
@Exceltrainingvideos3 жыл бұрын
Glad it was helpful!
@krn1424210 жыл бұрын
Thanks Dinesh. Strange it still worked. Check your authentication line. I think you wrote SMPT vs. SMTP. Thanks for the great tips on sending gmail via excel.
@Exceltrainingvideos10 жыл бұрын
krn14242 Thanks! I placed a note next to SMPT as SMTP.
@bhavyabansal118 жыл бұрын
Works like a charm!! Thanks so much Dr. Takyar!
@mikevanwieringen988310 жыл бұрын
Thanks for this well explained tutorial.
@Santoshnikam886 жыл бұрын
Thank You Sir. It worked perfectly...
@robertheskett79237 жыл бұрын
Works great. Is there anyway to get a reference of cells to be the To and from, so if the addresses change you can a cell instead of modifying the script?
@mdarshadbashir78039 жыл бұрын
Thank You immensely for doing a Great Job in VBA Excel . Your expositions are really remarakble. Especially in the way you present them in a very thorough way. Thanks and Thanks a lot indeed.. Can you also please show how to read our Gmails messages using VBA Excel or make a back up of these messages in an excel worksheet
@imrananwar204410 жыл бұрын
Hi Sir,Love your Videos.Very Special Thanks to you.These help me a lot
@tensketch3856 жыл бұрын
Hi Dinesh. I'm using an automated Excel Invoice, where i want to send email by clicking a button, and it send email through gmail to the client. When i click the send email button, Each time the Macro should capture email id from a cell in the excel invoice. I have already created a Macro for saving as PDF. PDF invoice should automatically be attached to the email. Subject will be the filename of the invoice. Anyway to do this?.
@panchitomontero90515 жыл бұрын
Very helpful. Thanks! I would very much be interested to implement something like this, but with multiple emails with an Excel file that contains columns with all sort of data. The emails are included in the Excel file, so it would be a row per recipient. Do you have a video for something like that?
@Exceltrainingvideos5 жыл бұрын
This link will help: www.exceltrainingvideos.com/how-to-create-notifications-in-excel-with-vba-revisited/ Or search www.exceltrainingvideos.com
@nitishvishwakarma37439 жыл бұрын
Hi Dinesh Sir, Thanks for your valuable videos. Can you help me out for a problem I have written below- I want to automate Google spreadsheet add-on "Yet another mail merge" through Script Editor. Or tell me how to mail merge through Ms-Word but with personalized Subject Lines.
@mukundjoshi5986 жыл бұрын
Hello Sir, thanks for the guidance, It's easy to understand and implement. I am stuck with one thing, so need your help if possible. I can't restrict my mail body content within certain cells, it might vary depending on the email. Hence earlier i used to send multiple emails using macro via Outlook in Excel itself, but now need to use gmail. In Outlook, mail body used to be my selection of cells in excel. I am unable to do it in Gmail. In short, Activesheet.selection needs to be my Email Body in Gmail. Kindly help. Thank you.
@dl2236789 жыл бұрын
Hi Dinesh, I was wondering if there was a way to send the current file you are working on? Thanks!
@Exceltrainingvideos9 жыл бұрын
Danny Lau Try this: www.exceltrainingvideos.com/how-to-use-automation-to-send-ms-outlook-mail-using-excel-vba/
@RobGoldstein5 жыл бұрын
Thank you for posting this. It is half of what I am trying to do. Is it possible to do a mail merge using Gmail with this ?
@Exceltrainingvideos5 жыл бұрын
I just replied to that question.
@RobGoldstein5 жыл бұрын
@@Exceltrainingvideos do you have a link?
@armin85589 жыл бұрын
Thanks a lot, everything is working as id should. Is there a way to create a PDF file of an area without using pdf creater, just using vba?
@Exceltrainingvideos9 жыл бұрын
+Armin Just define the range like Range("A8:E20") that you wish to convert to PDF in your VBA code.
@patinom11ify9 жыл бұрын
Hello Dinesh. Thanks a lot for your video. I cant seem to run it perfectly. I dont recieved the mails nor the notification from gmail. However, I will also like to know how can I input in the mail body, information from an active excel sheet, and how can I set the sendto adress also from a cell on the excell sheet. thanks
@Exceltrainingvideos9 жыл бұрын
+Mateo Patiño Have a look at this video: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/ Use the range or cells property to get information from your worksheet into the macro.
@robertmccahon78 жыл бұрын
Try setting your smtpserverport to 465
@martinj92852 жыл бұрын
Dear Sir,, Big fan of u..😇 ..I need to insert the PNG or JPG snap file into the GMAIL BODY of the Content. Like after "Hi Team,".......Can u plz tell me that how to insert into the gmail body?.. I am getting as a empty mail only..I am using send keys and object and Range HTML also..But no uses...!!!
@tendentiousproductions97147 жыл бұрын
This doesn't work for 2016 Office for the Mac Right?
@NickHorton-q9w Жыл бұрын
Is it possible to add a JPG to the bottom of the email you have created.
@ianreeve32006 жыл бұрын
I would like to display the email before sending. Please indicate how this can be done? I have looked at the reply below but can't find the answer in the link you gave. Thanks
@Exceltrainingvideos6 жыл бұрын
This link will guide: www.exceltrainingvideos.com/send-numbered-message-automatically-through-outlook/
@boggulasivakumar30578 жыл бұрын
Hi Sir, First of all thanks for sharing your knowledge to all, I need to copy cell range form excel to paste in to gmail body pls help me to solve this. thanks in advance .
@nguyenvinh26483 жыл бұрын
Dear Mr Dinesh Kumar Takyar Best wish for you during this pandemic i want to ask you a question, because i already copy all your code, run it Ok but gmail did not send anything. I also turn off the security, so could you please show me what happen Thank you very much
@Exceltrainingvideos3 жыл бұрын
Gmail keeps on changing its code. Therefore you must look for the latest VBA code to access the newer html elements.
@NeerajNatu10 жыл бұрын
the mail is not going....I have no errors in VBA popping up, the msgbox says mail sent as i had typed in but still no mails in my gmail account.
@krishnakishorepeddisetti43877 жыл бұрын
hi Dinesh, thank you for your wonderful tutorial. the code was working fantastic.but, is there a way where i can set the bounce back mail to my email id when the mail is not delivered. if that can be incorporated. the code is just great. right now i am not getting bounce back mails. will be waiting your reply thanks and regards kishore
@msg4sam5464 жыл бұрын
Hi Sir, whether we can send multiple bulk emails with different contain based on value in excel. I want to send through Gmail only.
@Exceltrainingvideos4 жыл бұрын
These tutorials will help: www.exceltrainingvideos.com/send-emails-to-multiple-persons-with-multiple-attachments/ To use Gmail you can try: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
@magibis75197 жыл бұрын
Really usefull sir
@satree58 жыл бұрын
Dear Sir, I am a teacher and have to send progress of my students to their parents on a weekly bases. I created a workbook where i plot their weekly progress and I would like to ask if you can make a video to explain the vba code that I found on the internet. I am a novice when it comes to VBA but would like to learn more. Please help.
@tranejones10187 жыл бұрын
hi, I would like to attach the last date modified file (automatically), how can I do that? thank in advance!!
@septianitrifosa91417 жыл бұрын
do u know how to run macro automatcally when data entered cell?
Hi Sir ...Excel cha code for sending mails via gmail along with attachment file.. please aap iska video banao...
@tanmoyd5 жыл бұрын
Does it take some time to send/receive the email? I sent it and got the success message as well, but I do not see the email in my Gmail inbox.
@Exceltrainingvideos5 жыл бұрын
This link with a downloadable sample file for practice will help: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
@MattLutey8 жыл бұрын
Dr. Takyar,Every day I want to send an email with an update given the current cell's value for the day. How can I modify the message body to do this?
@Exceltrainingvideos8 жыл бұрын
Use a variable and assign the current cell's value into the variable. Finally use the variable for the body. You can also assign the current cell's value to the '.body' .
@NirmalSingh537 жыл бұрын
Sir I have tried this programme and it is working perfectly . I want to add this code with a n excel Invoice vba which goes like this "Sheet1.Range("A2:R27").ExportAsFixedFormat xlTypePDF, Filename:= _ "C:\Billing Data ew_sale_invoice" " so that my invoice should be converted into pdf as well as mailed via gmail. Would you help me please.
@Exceltrainingvideos7 жыл бұрын
www.exceltrainingvideos.com/tag/how-to-save-invoice-template-as-pdf-file/ Or search www.exceltrainingvideos.com
@SUR-NI-VARA3 жыл бұрын
Sir, Can I have the code to pick up, email address and attachment from Excel Table Active Row 👍 Thank you in advance.👍
@Exceltrainingvideos3 жыл бұрын
Yes, sure
@medrayan84186 жыл бұрын
Dear Sir, I have a lisbox filled with data ( many lines and some columns ) and i wand to send all data in listox via email. would you please assist me to do that ? best regards
@paulalbertweis30117 жыл бұрын
Hello... This is great dialogue. Could someone recommend how to embed a longer Mail.TextBody where VBA can update certain verbiage as it loops though the multiple Mail.To's . The video has a simple one liner, but I want to have many more (up to 20) Mail.TextBody lines, include closing salutation. PLEASE HELP ME
@saveriomartino92018 жыл бұрын
Hi Mr. Dinesh, i'm italian so i apologize for my english, only a question: in my client (Outlook) there are 4 account, and the one that i would use from vba isn't the first one (thet the vba sub use by default) what can i do? otherwise i have to remove all my account and reinstall all again. Thank you very much. Saverio
@sridharkrishnappanavanerth33884 жыл бұрын
Sir, my file has some vba Macros, and about 5 work sheets, i only want a single file to be sent via gmail, what is the procedure sir,
@Exceltrainingvideos4 жыл бұрын
You want to send one worksheet?
@sridharkrishnappanavanerth33884 жыл бұрын
@@Exceltrainingvideos yes sir, only one worksheet out of the macro enabled workbook containing say 5 or more worksheets. And also that worksheet format will be .xlsx. and the complete process should be automated.
@ЭльмарИдрисов-г5э6 жыл бұрын
I have 2 questions: 1. How to display email before sending it ? It is important as I want to make adjustments and then click "send". 2. How to attach current open excel from which macro is written and which does not need to be saved after being emailed?
Not sure how this playlist is going to help me. I did not find needed information.
@ianreeve32006 жыл бұрын
I too need to display before send, did you manage to do it? If so how please
@sayantanikayal11328 жыл бұрын
sir, there is no error showing in my code .the msg box is showing that you mail has been sent but when i am opening the gmail account there i didnt forund any excel msg i had mail. please solve the prob n rply as soon as possible thank you sir
@khanriza9 жыл бұрын
Can you add an authenticating password to this script so that you don't have to disable your security settings in your email account?
@sasamilosevic22058 жыл бұрын
Hello, I fallowed all your steps and it seem like its working but email just dont arrive to inbox, i tired with multiple accounts of gmail. What to do?
@Exceltrainingvideos8 жыл бұрын
This link migh help: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
@sasamilosevic22058 жыл бұрын
I tired everything, email just don t arrive :( Do You know what is the problem?
@Evolutiontestweekies5 жыл бұрын
Can i use this concept with Mail becky application?
@Exceltrainingvideos5 жыл бұрын
No idea.
@Evolutiontestweekies5 жыл бұрын
@@Exceltrainingvideos Thank you
@yopieaprizal23277 жыл бұрын
should i activate outlook in my pc? bcs the code vwasn't working... there s no email sent in my gmail...
@Exceltrainingvideos7 жыл бұрын
This link will help: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/ Get the book Excel 2016 Power Programming with VBA: amzn.to/2kDP35V If you are from India you can get this book here: amzn.to/2jzJGqU Or visit www.exceltrainingvideos.com to learn more for free.
@ce-shpweb63138 жыл бұрын
Morning: I got a error ; .AddAttachment "C:\Users\Ce-SHP\Desktop\email-via-gmail.txt", can you help me?
@v6kuchi4 жыл бұрын
Hi Im trying to list the numbers of a sequence of intervals A1 will have (13456666-13456668) and I should get the below in A2 (13456666,13456667,13456668) I cant get going with this, any help with automating this is appreciated
@Exceltrainingvideos4 жыл бұрын
This link will help: www.exceltrainingvideos.com/unstack-data-automatically/
@palaksoni83414 жыл бұрын
Hi , How to send email automatically by fetching the records from Excel sheet and sent them bday wishes . Right now you have given hard coded email id
@Exceltrainingvideos4 жыл бұрын
This VBA tutorial in Excel will guide: www.exceltrainingvideos.com/using-dates-with-excel-vba-to-automate-email-reminders/
@umamaheswari95268 жыл бұрын
Getting Compile Error Argument not optional for .AddAttachment Kindly help to find the solution
@Exceltrainingvideos8 жыл бұрын
Have a look at this link and the VBA code: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
@umamaheswari95268 жыл бұрын
Now I am not getting the error.Got mail sent message and no mails received in my mail box. Could you help me on this.
@SantoshKumar-fr5tm8 жыл бұрын
Hi Dinesh, Very good video thanks for it. But can you please help me resolving my issue. I did exactly same what you explained but it is showing me error "The transport failed to connect to the server". What wrong i am doing. pl check. Thanks in advance. Santosh
@Ganesh7496 жыл бұрын
Santosh Kumar It might be an issue with your internet connection or incorrect login credentials...pls check
@Lark567 жыл бұрын
Will this work in Word 2016 for all clients email ?
@Because0116 жыл бұрын
Hello did you find an answer to your question? I have same problem and I am looking for it.
@septianitrifosa91417 жыл бұрын
Hi sir. thx for the tutorial.. it works .. but I have some problem, I want to send excel sheet an cell as the body of email not as the attachment.. can u help me solve this problem and show me the code? I've tried some code but it only works for outlook... I need the code to send it with CDO message.. can u solve this? thx
@antoniosantos4217 жыл бұрын
Hello> Did you find a solution for this one?
@septianitrifosa91417 жыл бұрын
Im not... How about u?
@septianitrifosa91417 жыл бұрын
sorry which one?
@antoniosantos4217 жыл бұрын
Having an email sent automatically on CDO basis and with the the rows that meet a criteria in the body of the message - hopefully in HMTL format.
@septianitrifosa91417 жыл бұрын
no.. Im not
@anisharma78894 жыл бұрын
Nameste Sir, Can we schedule every mail in Gmail And can we paste image in email body Thanks in advance
@Exceltrainingvideos4 жыл бұрын
Should be possible.
@anisharma78894 жыл бұрын
@@Exceltrainingvideos please suggest
@anisharma78894 жыл бұрын
@@Exceltrainingvideos please help
@ulludacharkha4 жыл бұрын
Dear Takyar Ji, Jai Hind ! I am getting error message at " The "SendUsing" configration value is invalid How to resolve it ?
@Exceltrainingvideos4 жыл бұрын
This link with a downloadable sample file will help: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
@gunindradas80425 жыл бұрын
Sir how I can send multiple people and different attachment can it possible?
@Exceltrainingvideos5 жыл бұрын
It's possible. You need to create the values: To: Body: Attachment: in your Excel worksheet and then loop through the data.
@gunindradas80425 жыл бұрын
Please sir upload a video in this topic
@Exceltrainingvideos5 жыл бұрын
OK
@gunindradas80425 жыл бұрын
Thanks sir. It's very urgent. The video helpful for me.
@JasonX88810 жыл бұрын
When I run the VBA, It only runs for a second and then stops
@ThotaNagasudheer3 жыл бұрын
Thankyou Dinesh
@Exceltrainingvideos3 жыл бұрын
Welcome! Please share this channel on Excel VBA with your friends too.
@satishkumarn.26137 жыл бұрын
Sir, Can we send mail by uninstalling outlook in system
@Exceltrainingvideos7 жыл бұрын
Can I buy an orange in a shop without paying (money)?
@karmegammariappan91157 жыл бұрын
Hello Sir. I need your support on my below doubt. In my Company they using gmail application as front end for Sending/Receiving emails but backside it is running in our company server. I just trying to create a macro for sending automatic email with my company SMPT name and port number but i am not able to send mail using this and also advise should i give my password in code because my username already having access to connect with our server . Could you please support me on this.
@Exceltrainingvideos7 жыл бұрын
Ask the system administrator.
@raviroshan39047 жыл бұрын
hi, i am just not able to send mail using this, i tried everything but its not working, the code runs and doesnt display any error but in email i dont see any send or received mail, when i remove "on error resume next" line from code then it gives error " the transport failed to connect to the server" plz help
@Exceltrainingvideos7 жыл бұрын
Read the details carefully at this link: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/ Then watch the video.
@Davidtresmoore7 жыл бұрын
I get "Compile error" when I try to run this, the problem starts with the line ending in "smtp.gmail.com", any suggestions?
@Exceltrainingvideos7 жыл бұрын
Get the code from here: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/ Don't copy paste.
@Davidtresmoore7 жыл бұрын
now I get the message "Run-time error '424': Object required" then when I click debug it highlights the line ending in smtp.gmail.com, how should I fix this?
@gagansingh34814 жыл бұрын
SIR I AM GETTING RUNTIME ERROR ON SUBJECT TELL ME THE SLOUTION PLEASE
@Exceltrainingvideos4 жыл бұрын
Check your code.
@apoorvajain78 жыл бұрын
I exactly did the same but it's showing user defined type not defined help me out anyone
No error observed while running and no email sent. Please help
@Exceltrainingvideos4 жыл бұрын
This video was first published in August 2014. The Google Mail website has changed. You need to inspect the HTML code and tweak the VBA code accordingly.
@niksarpate4 жыл бұрын
@@Exceltrainingvideos .Ton thanks for this quick reply..Have a good day...
@synergistixindia9 жыл бұрын
THANK YOU...
@SaurabhSingh-qr8bu8 жыл бұрын
Dr. Takyar it is not working
@ramkrishnarao12122 жыл бұрын
Sir, one clarification
@nitinsingh.21074 жыл бұрын
Great
@Exceltrainingvideos4 жыл бұрын
Glad to hear that. Please share with your friends.