Send Email with Excel VBA via CDO through GMail
If you're working on a project or having a numerous reports in excel to be sent out to your boss or clients. And what you usually do is save the workbook, compose a new email, copy the contents or attach it on your email client. That's a time consuming task! What we wanted to do is automate the tasks from within the Excel Workbook you're working with. The SendEmail() Function below will do the task for you. Function Definition: Function SendEmail(ByVal Username As String, _ ByVal Password As String, _ ByVal ToAddress As String, _ ByVal Subject As String, _ ByVal HTMLMessage As String, _ ByVal SMTPServer As String, _ ...
Thanks for information ๐๐๐๐
ReplyDelete