+ Reply to Thread
Results 1 to 7 of 7

PDF to Email Macro no longer works.

  1. #1
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    PDF to Email Macro no longer works.

    Hi, I'm looking for help with a macro that no longer seems to work. I don't know what the cause of it might be. Pretty sure it's something fixable but I just don't know how to fix it.

    I have attached a file and also a screenshot of where the error seems to be.

    macro.PNG
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: PDF to Email Macro no longer works.

    Works fine for me.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: PDF to Email Macro no longer works.

    It's still not working for me.

    Before I was getting the msgBox "Email was not sent"

    Now I'm getting this. Maybe the problem is with Outlook but i'm able to send and receive emails on the account so i'm not sure why the macro isn't working.
    Attachment 648792

  4. #4
    Forum Contributor
    Join Date
    03-08-2011
    Location
    London
    MS-Off Ver
    Work Office 365 Home 2019
    Posts
    427

    Re: PDF to Email Macro no longer works.

    Just tried it myself and it works for me too.

    Just as a hint, when asking for help, you might want to set it as .display rather than .send

    It will prevent your mailbox filling up and will prevent others from sending unnecessary emails.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: PDF to Email Macro no longer works.

    Noted. I'm still very inexperienced. Do you guys know what might be the problem though?

  6. #6
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: PDF to Email Macro no longer works.

    Ok I finally figured out that the reason the email wasn't being sent for me was because I didn't have an email address in the CC field.

    Which now begs the question, how to adjust the code such that the email is still sent, even though one of the TO or CC fields might be blank.

  7. #7
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: PDF to Email Macro no longer works.

    Even though I didn't get the answer to my question in the post above I will close this thread.

    Maybe its better to just go with one email address option rather than having two and then trying to figure out the code that allows for the different possibilities.

+ 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. [SOLVED] Macro no Longer Works After Row Insert
    By RACoulon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2018, 11:17 AM
  2. Excel 2016 VBA to send email - old VBA (Excel 2010 no longer works)
    By Spewtress in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2017, 01:53 PM
  3. Row Delete Macro No Longer Works
    By matt85webb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2015, 04:36 PM
  4. Macro with Sendkeys no longer works
    By barnett2000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-23-2015, 01:15 PM
  5. [SOLVED] Macro no longer works
    By rkorinko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2014, 01:40 PM
  6. Unmerge macro no longer works, needs some tweeking!
    By MZing81 in forum Excel General
    Replies: 0
    Last Post: 06-19-2012, 10:40 PM
  7. After formatting PC and reinstall Office macro no longer works.
    By oteixeira in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2008, 10:43 AM

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