Results 1 to 5 of 5

Choose which Outlook account to send email

Threaded View

  1. #1
    Registered User
    Join Date
    09-23-2018
    Location
    Egypt
    MS-Off Ver
    10
    Posts
    14

    Choose which Outlook account to send email

    Hi,

    Please can you help to handle attach macro to let me choose which account will be used to send email as I have two in my PC.

    I try to updated attached macro by below code but it is not working.
    Dim Account As Outlook.Account
    
    For Each Account In objOutlook.Session.Accounts
    
        'Debug.Print Account.DisplayName
        If Account.DisplayName = "Insert account name" Then
        
            objOutlookMsg.SendUsingAccount = Account
        
        End If
    Next
    Thanks;
    Ehab

    Please read our rules. Code tags are required. --Moderator
    Attached Files Attached Files
    Last edited by 6StringJazzer; 10-24-2020 at 10:54 AM. Reason: code tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Choose specific mail account on Mail Mac to send an email
    By coolx72 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2018, 07:27 AM
  2. Send email from specific account - Outlook 365 2013 version
    By naseerrahaman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2018, 03:05 AM
  3. [SOLVED] Using Visual Basic, can I send Outlook email from an account other than the default?
    By dave7182 in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2015, 06:14 AM
  4. Send email from non-default outlook account via VBA
    By moonmanhk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2014, 10:44 AM
  5. Send mail from outlook by selecting particular account
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2013, 11:36 AM
  6. Replies: 2
    Last Post: 02-25-2013, 10:40 AM
  7. Send data from Excel in email from specific email account
    By eriknokc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-05-2007, 05:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1