+ Reply to Thread
Results 1 to 14 of 14

Issue with Mass-Email VBA macro

  1. #1
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Issue with Mass-Email VBA macro

    Hello,

    I'm having trouble getting my macro to effectively send a mass email which is based on a message template set up in excel. The code I am attempting is:
    Please Login or Register  to view this content.
    It's not giving me a particular error but nothing is happening after I execute the macro. So I suppose I am missing something within the code for it to execute correctly. It is also supposed to be deleting the data in the email tab when it sends out the email.
    I will attach a sample file to show you the excel file I am working with. You have to input an email address to test the macro on yourself. Please let me know if you need anything else from me.

    Thank-You very much
    Mike
    Attached Files Attached Files
    Last edited by MikeSta4ord; 04-29-2016 at 04:26 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Issue with Mass-Email VBA macro

    Unfortunatley I dont have Outlook so cant test this but what happens when you debug? where does it drop out?
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issue with Mass-Email VBA macro

    Hi Mike

    The Code appears to work for me.

    Change the indicated line of Code then run the Workbook Open Code again...get anything?

    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Issue with Mass-Email VBA macro

    It doesn't appear to be dropping out anywhere, It just isn't sending off the email for some reason
    Last edited by MikeSta4ord; 04-22-2016 at 09:48 PM.

  5. #5
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Issue with Mass-Email VBA macro

    John,

    After running the code with the change I get a display of the email. It appears to be working but I need the macro to actually send the email so is there something else to use for olmail.send?

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issue with Mass-Email VBA macro

    Hi Mike

    If I place my Email Address in Cell D2 and change the Code
    Please Login or Register  to view this content.
    The Email Sends and I receive it.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issue with Mass-Email VBA macro

    Hi Mike

    You're running the Code on Workbook Open (I guess I'd ask why)...place email addresses in Column D, save and close the file. Open the File..what happens?
    Last edited by jaslake; 04-22-2016 at 10:54 PM.

  8. #8
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Issue with Mass-Email VBA macro

    Im going to ask a really dumb question and I know the answer is yes but you do have an actual email account set up in Outlook dont you?

  9. #9
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Issue with Mass-Email VBA macro

    John, I want it to run when the workbook opens because the data fills in the email tab when a certain date is reached. When I open the workbook nothing at all happens, even after trying to run the macro on its own it doesn't do anything...It just runs without an error but i don't receive an email. Sorry I'm truly not familiar with VBA, I'm trying to do my best to explain the issue.

    Yes Pj, I do have an outlook email account. This code worked for me before, but after I made a minor change to the cells it referenced on a newly installed office 16, it stopped working. Wondering if there is an issue with the settings within office 16.
    Last edited by MikeSta4ord; 04-23-2016 at 01:41 PM.

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issue with Mass-Email VBA macro

    I've tested the Code in both Excel 2007 and 2010 and it performs as expected. I'll ask others that have Excel 2016 to test for you.

    http://www.excelforum.com/showthread...50#post4371150Hi Mike
    Last edited by jaslake; 04-23-2016 at 04:31 PM.

  11. #11
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Issue with Mass-Email VBA macro

    What version of Outlook are you using?

  12. #12
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Issue with Mass-Email VBA macro

    outlook 2016
    Last edited by MikeSta4ord; 04-29-2016 at 01:52 PM.

  13. #13
    Registered User
    Join Date
    05-19-2015
    Location
    Boulder, Colorado
    MS-Off Ver
    2016
    Posts
    45

    Re: Issue with Mass-Email VBA macro

    I've identified the issue. Like you suggested, it wasn't with the macro. The issue was with the outlook server I was connected to, the outbound server was incorrect and that was giving me the issue of not sending out emails.

    Thanks for your help.

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issue with Mass-Email VBA macro

    Glad you got it sorted.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Mass email a column of email addresses?
    By bmblack in forum Excel General
    Replies: 3
    Last Post: 09-30-2015, 03:06 PM
  2. VBA to perform mass email functions with Apple Mail (Macbook default email program)
    By thianphat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2014, 04:09 PM
  3. [SOLVED] How to add an email attachement to VBA Mass Email by referencing file name in column
    By XCL88 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-10-2014, 06:20 AM
  4. Mass Email Macro convert 2003 to 2007
    By dare2join in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 01:14 AM
  5. Mass email thru excel
    By ndp13 in forum Excel General
    Replies: 2
    Last Post: 10-23-2006, 12:05 PM
  6. Email addresses in Excel need to format for mass email
    By Boomer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 08:50 AM
  7. [SOLVED] Mass Email
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2005, 12:05 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