+ Reply to Thread
Results 1 to 24 of 24

Email Macro won't send

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Email Macro won't send

    I have created the following Macro based off Ron de Bruin's templates here http://www.rondebruin.nl/win/s1/outlook/bmail5.htm
    It was working fine until I added more code to the strbody, but now, the macro runs through, no errors come up, and nothing gets sent. Any help/ideas?
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    I have made some changes and figured out that this part of the body is causing the problems.
    Please Login or Register  to view this content.
    The email sends but is blank. When I don't include this part, it sends fine; however, I need it. Is there a syntax error or something in it?

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Email Macro won't send

    I'm not sure if this matters but why do you have spaces after A & F ie: "A " _ "F "?
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    I want the value of A&B to be on the same line

  5. #5
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    it doesn't make a difference if I delete the space

  6. #6
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    Strangely it works when take out most of the content and leave
    Please Login or Register  to view this content.
    Can anyone Help?

  7. #7
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Email Macro won't send

    try this...
    Please Login or Register  to view this content.
    Regards, John55
    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.

    ...enjoy -funny parrots-

  8. #8
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    It prompts the error "next without for"
    Please Login or Register  to view this content.
    at the end of the
    Last edited by bocaj315; 06-20-2013 at 10:10 AM. Reason: privacy

  9. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Email Macro won't send

    sorry
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    it still prompts the same error on the "next"

  11. #11
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Email Macro won't send

    hmmm..
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    That one didn't send any email. The format below will send everything up until the line I have highlighted. After that, it starts to send a blank email. If delete that line and the other section I have highlighted the email will send fine.
    Please Login or Register  to view this content.

  13. #13
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Email Macro won't send

    I changed the word "send" to "kkk..." and it worked
    see this condition
    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    I changed it and the email sends, but the entire email is blank

  15. #15
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Email Macro won't send

    strange...
    see the file attached, it works for me, if it does not work for you...I am sorry!
    Attached Files Attached Files
    Last edited by john55; 06-20-2013 at 10:51 AM.

  16. #16
    Forum Contributor
    Join Date
    01-21-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    258

    Re: Email Macro won't send

    The information in column B doesn't conatin a '/' or a '\' does it?

    Seems like a stupid question but when my workbook was creating an automatic e-mail and my information had a back or front slash it left the e-mail blank.

  17. #17
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    this works except it sends an email to each contact every row of information.

  18. #18
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    you have the for i=2 nested under for each cell.

  19. #19
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Email Macro won't send

    is this what you are after?
    Please Login or Register  to view this content.

  20. #20
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    No, I just want one email for each row of information sent to the email address in column K

  21. #21
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    nvm I got it

  22. #22
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Email Macro won't send

    bocaj315,

    Please post the final code so others following the thread may learn from it.

    Thank you in advance,

    BigDawg15

  23. #23
    Registered User
    Join Date
    05-30-2013
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Email Macro won't send

    Please Login or Register  to view this content.

  24. #24
    Registered User
    Join Date
    02-01-2011
    Location
    California, Sacramento
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Email Macro won't send

    Awesome,

    Thank you!

    BigDawg15

+ 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