+ Reply to Thread
Results 1 to 3 of 3

VBA Email

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    2

    VBA Email

    I have a list of email addresses and a worksheet of data with various sections that relate to each address. I have been able to parse the data to the appropriate email address and have even figured out how to email the separate worksheets. However for every email I get the following notification:

    A program is trying to send an e-mail message on your behalf. If this is unexpected, click Deny and verify your antivirus software is up-to-date. For more information about e-mail safety and how you might be able to avoid getting this warning, click Help.

    Does anyone know how to avoid this warning or to have the macro automatically respond with Allow to this message?

    Thanks

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Email

    Hello rajag4,

    Welcome to the Forum!

    The message is part of Outlook's enhanced security. Unfortunately, VBA can not automatically respond to the dialog for you.

    The best approach is write your macro to send multiple emails at one time. This way you have to answer the dialog only once. However, you said you are emailing separate worksheets and this approach may not work.

    If you post a copy of your workbook then I can offer you more help. Please redact any sensitive or confidential data before posting your workbook.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA Email

    Leith,

    Thanks - I have posted a copy of the workbook with some made up data. While this workbook shows currently only two vendors the true data could have several hundred, thereby meaning several hundred emails to go out.

    Any way I could avoid the warning each time would be terrific.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 09-09-2013, 03:46 PM
  2. Send New Email W/ Body of Received Email, Then Delete Sent Email
    By edneal2 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-01-2013, 12:45 AM
  3. send selected range in email with default outlook email signature included
    By mdsickler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2013, 10:50 PM
  4. How to parse data in Outlook email using HTML version of email back to excel
    By bnasty in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-31-2012, 02:54 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