+ Reply to Thread
Results 1 to 3 of 3

VBA to Send Outlook Email

  1. #1
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 365
    Posts
    157

    VBA to Send Outlook Email

    I am using VBA to automatically send emails with Outlook. I am surprised that the VBA takes about 10 seconds for each email.

    Exceprts from my code are below. Is there anyway to speed this up?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: VBA to Send Outlook Email

    Hi Larry,

    My guess is that at least 5 seconds of the 10 is used by the warning that an application is trying to send e-mail on your behalf. Not sure what the other 5 would be.

    I used the following code and it ran in about 6 seconds (including the 5 second warning, for which I have an app that auto-clicks YES after it becomes active).
    Please Login or Register  to view this content.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VBA to Send Outlook Email

    Out of curiosity, how long does the code take without Attachments ?

    (I am presuming MyOutlookVariable to be a Global variable somewhere ?)

    We might also need to see the code being used to invoke the mail call...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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