Video size: 1280 X 720853 X 480640 X 360
Show player controls
Can i use this concept with Mail becky application?
+Dinesh Kumar Takyar Thank you
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?
This link will help: www.exceltrainingvideos.com/how-to-create-notifications-in-excel-with-vba-revisited/Or search www.exceltrainingvideos.com
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
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?.
Hi Sir,I tried as you mention the link that is very helpful but now i am facing another error "The Transport failed to connect to the server". please let me know how to run correctly my coding without getting any error.
Very Good Morning sir,I am very glad after watching this video but when i applied this coding i am getting an error message The "sendusing" configuration value is invalid." so please suggest me how to come out from this error.
This link will help: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/A sample file is also included for download.Don't forget the CDO reference as mentioned in the details of the above link.
Hi sir,This video is every good but i getting error (Compile error :- Argument not option) when i go on TO : line means it is give error on email address to whom i want to send the email. So please help me resolve this error other.
Hi Sir, please help me as mention my probe above. It is very urgent.
+Deepak Kumar www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
also i am getting same error on attachment filepath & name
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.
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
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
This link will guide: www.exceltrainingvideos.com/send-numbered-message-automatically-through-outlook/
Hi Sir ...Excel cha code for sending mails via gmail along with attachment file.. please aap iska video banao...
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
Thank You Sir. It worked perfectly...
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?
I too need to display before send, did you manage to do it? If so how please
Not sure how this playlist is going to help me. I did not find needed information.
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\new_sale_invoice" " so that my invoice should be converted into pdf as well as mailed via gmail. Would you help me please.
www.exceltrainingvideos.com/tag/how-to-save-invoice-template-as-pdf-file/Or search www.exceltrainingvideos.com
Why myMail.Send causes excel to have grayed out print dialog ?Once mail is sent, printing workbook becomes a very strange process.
Will this work in Word 2016 for all clients email ?
Hello did you find an answer to your question? I have same problem and I am looking for it.
Sir, Can we send mail by uninstalling outlook in system
Can I buy an orange in a shop without paying (money)?
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?
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
yes ofc.. please help.. first of all thx for giving ur time.. u r very kind .. thank you very much
Well...I did now. Let me know if I can be of help. It works like a charm!
no.. Im not
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.
I get "Compile error" when I try to run this, the problem starts with the line ending in "smtp.gmail.com", any suggestions?
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?
Get the code from here: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/Don't copy paste.
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.
Ask the system administrator.
Really usefull sir
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
This doesn't work for 2016 Office for the Mac Right?
hi, I would like to attach the last date modified file (automatically), how can I do that? thank in advance!!
I am using VBA to send a gmail from excel. It works great, however, I need to send the gmail using one of my contact groups for the "TO:" section of the gmail. I have not been able to find the right syntax to make that work. Would someone please point me in the right direction.
I could put it into Excel, however, I did not want to recreate the work already done. Meaning that I have contact groups in gmail already created and would prefer to use the groups. It would also cut back on maintenance when having to update the e-mail lists; both in Excel and the Contact Group.
You can use cell addresses if you have the data in an Excel worksheet.
as per the articular is not being maintained.msdn.microsoft.com/en-us/library/ms872853(v=exchg.65).aspx
do u know how to run macro automatcally when data entered cell?
should i activate outlook in my pc? bcs the code vwasn't working... there s no email sent in my gmail...
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/2kDP35VIf you are from India you can get this book here: amzn.to/2jzJGqUOr visit www.exceltrainingvideos.com to learn more for free.
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
Read the details carefully at this link: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/Then watch the video.
The smtp port should be 465
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 replythanks and regardskishore
Hello Mr Dinesh, You are my Hero :D, Thank you very much for all of your tutorial, This is really works.
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?
I tired everything, email just don t arrive :(Do You know what is the problem?
This link migh help: www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
hi Dinesh! thanks for the video. everything works well but i wanted to know if it is possible to display the email on gmail and not sending it directly ? (myMail. something? :) )Thanks a lot !
The code in the link has problems with quotes.Quotes from MS word are evil. They are designed to prevent people from copy/paste codes properly.
Morning: I got a error ; .AddAttachment "C:\Users\Ce-SHP\Desktop\email-via-gmail.txt", can you help me?
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 .
Getting Compile ErrorArgument not optional for .AddAttachmentKindly help to find the solution
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.
Have a look at this link and the VBA code:www.exceltrainingvideos.com/send-email-using-gmail-with-excel-vba/
I exactly did the same but it's showing user defined type not defined help me out anyone
Dr. Takyar it is not working
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
Santosh Kumar It might be an issue with your internet connection or incorrect login credentials...pls check
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?
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' .
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
Works like a charm!! Thanks so much Dr. Takyar!
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
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
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.
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
Try setting your smtpserverport to 465
+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.
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?
+Armin Just define the range like Range("A8:E20") that you wish to convert to PDF in your VBA code.
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
THANKS! at last a process that REALLY Works! or sort of. The Yahoo subroutine works just as you mention. The Gmail however doesn't seem to work. This is consistent with the many others out there that claim to send email using Gmail and I have yet to find one that works. I have made all changes to ports, and really disabling security and still the messages don't go. Typically they are dated 2+ years ago, and Gmail seems to be a moving target. While gmail is preferred, I get what I need by using YAHOO, as YAHOO sub DOES work. THANKS AGAIN.
Can you add an authenticating password to this script so that you don't have to disable your security settings in your email account?
Hi Dinesh,I was wondering if there was a way to send the current file you are working on?Thanks!
+Danny Lau Try this: www.exceltrainingvideos.com/how-to-use-automation-to-send-ms-outlook-mail-using-excel-vba/
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.
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.
When I run the VBA, It only runs for a second and then stops
Hello DineshI have followed your instructions, but the email does not send at all. I have used the following code as instructed by you, What I'm I doing wrong?Option ExplicitSub Send_Email_via_Gmail()Dim myMail As CDO.MessageSet myMail = New CDO.MessagemyMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpusesssl") = TruemyMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpserverport") = 25myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/sendusing") = 2myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/sendusername") = "firstname.lastname@example.org"myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/sendpassword") = "My Password"myMail.Configuration.Fields.UpdateWith myMail.Subject = "Test Email from Muhib".From = "email@example.com".To = "firstname.lastname@example.org".CC = "email@example.com".BCC = "".TextBody = "good Morning".AddAttachment "C:\Users\muhib.miah\Documents\New Regional Performance Report YORK.xlsx"End WithOn Error Resume NextmyMail.Send'MsgBox ("Mail has been sent")'Set myMail = NothingEnd Sub
How to loading new mail in gmail via Excel VBA
+Jung won jin @send-email-using-gmail-with-excel-vba/
Hi Sir,Love your Videos.Very Special Thanks to you.These help me a lot
Sir, I am not able to send email. I am not getting any error in vba code as well as not getting any mail in both To and From ids
Thanks for this well explained tutorial.
It's just amazing... A kind of revelation or something... I didn't even imagine one could do so much from Excel... Dinesh, you're fantastic!!
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.
+krn14242 Thanks! I placed a note next to SMPT as SMTP.