Skip to content

Free Excel Training 2022

Excel Training Tutorials 2022

  • Home
    • About
    • Contact
    • Privacy Policy
  • Excel Essentials
  • Excel Functions
    • Excel 2003
    • Excel 2007
    • Excel 2010
  • Excel in Hindi
  • Excel VBA
    • Excel 2003 VBA
    • Excel 2007 2010 2013 VBA
  • YouTube
    • YouTube Advanced VBA
    • YouTube Hindi
  • Books
  • What’s New

Tag: send email from specific account in outlook

Send Email from Specific Account in Outlook Automatically | 2021

Posted on October 20, 2021October 20, 2021 by Dinesh Kumar Takyar

How to send email from Outlook automatically from specific account. Watch the training video below:

Send Email from Specific Account Automatically

There will be times when we wish to send an email to different people through different email accounts. We can automate this process for sending email to different persons using specific accounts in Outlook via Excel. The code below explains the complete automation in detail:

Sub SendMailUsingSpecificAccount()
Dim SendTo As String
Dim Cell As Range

For Each Cell In Range("A2", Range("A" & Cells.Rows.Count).End(xlUp))
    'We create a blank mail
    With CreateObject("Outlook.Application").CreateItem(0)
        SendTo = Trim(Cell.Value)
        ' We use the properties of the mail
        If SendTo <> "" Then
            .To = SendTo
            .Subject = Cell.Offset(0, 1).Value
            .Body = Cell.Offset(0, 2).Value
        'We now use the specific sender from our worksheet
        Set .SendUsingAccount = .Session.Accounts.Item(Cell.Offset(0, 3).Value)
        ' .Send 
        .Display
        End If
  End With

Next

End Sub

Note: Some lines of code have been ‘remarked’ out. You can also use ‘CC’ and ‘BCC’ to send emails to multiple persons.

Use Specific Account to Send Email Automatically from Outlook via Excel

Further reading:

Automate Outlook from VBA

You can also download a sample file for practice from the link below:

Posted in Excel VBA, Microsoft 365 VBATagged advanced excel vba, Automate Sending of Email from Outlook from Specific Account, Automate Sending of Email from Specific Account, download vba examples, excel to vba, excel vba advanced tutorial, excel vba beginner tutorial, excel vba easy, excel vba for advanced learners, excel vba for beginners, excel vba for noobs, excel vba help, excel vba tutorial, excel vba tutorials for beginners, excel vba youtube, free excel vba examples, getting started with vba, learn advanced excel vba, send email from specific account in outlook, what is vba in excel

Change Language

en English
af Afrikaanssq Albanianam Amharicar Arabichy Armenianaz Azerbaijanieu Basquebe Belarusianbn Bengalibs Bosnianbg Bulgarianca Catalanceb Cebuanony Chichewazh-CN Chinese (Simplified)zh-TW Chinese (Traditional)co Corsicanhr Croatiancs Czechda Danishnl Dutchen Englisheo Esperantoet Estoniantl Filipinofi Finnishfr Frenchfy Frisiangl Galicianka Georgiande Germanel Greekgu Gujaratiht Haitian Creoleha Hausahaw Hawaiianiw Hebrewhi Hindihmn Hmonghu Hungarianis Icelandicig Igboid Indonesianga Irishit Italianja Japanesejw Javanesekn Kannadakk Kazakhkm Khmerko Koreanku Kurdish (Kurmanji)ky Kyrgyzlo Laola Latinlv Latvianlt Lithuanianlb Luxembourgishmk Macedonianmg Malagasyms Malayml Malayalammt Maltesemi Maorimr Marathimn Mongolianmy Myanmar (Burmese)ne Nepalino Norwegianps Pashtofa Persianpl Polishpt Portuguesepa Punjabiro Romanianru Russiansm Samoangd Scottish Gaelicsr Serbianst Sesothosn Shonasd Sindhisi Sinhalask Slovaksl Slovenianso Somalies Spanishsu Sudanesesw Swahilisv Swedishtg Tajikta Tamilte Teluguth Thaitr Turkishuk Ukrainianur Urduuz Uzbekvi Vietnamesecy Welshxh Xhosayi Yiddishyo Yorubazu Zulu

Please click the icon to access all YouTube videos, if you can't see the video on the main page:

View All Posts

View All Pages

Share with Friends:
              

Create a website that's free with GoDaddy!
Proudly powered by WordPress | Theme: sosimple by Fernando Villamor Jr..

Copyright ©2023 exceltrainingvideos.com