+ Reply to Thread
Results 1 to 6 of 6

PDF to Outlook

  1. #1
    Registered User
    Join Date
    03-14-2019
    Location
    Essex
    MS-Off Ver
    2016
    Posts
    19

    PDF to Outlook

    Hey,

    I have a macro that will save a pdf from a pivot table and open a new outlook e-mail, however I'm having trouble getting it to upload the pdf to the e-mail.

    Can anyone help please?

    I've attached the doc for help.

    Thanks,

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,744

    Re: PDF to Outlook

    I think this is a reason:


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but here in RDB_Mail_PDF_Outlook function:

    Please Login or Register  to view this content.
    you try to attached file from cl.Value not FileName
    but I can be wrong.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    03-14-2019
    Location
    Essex
    MS-Off Ver
    2016
    Posts
    19

    Re: PDF to Outlook

    Hey Kokosek,

    I think because I have -

    FileName = cl.Value & ".pdf"

    this should work, however I did change it to include PathName, and also put it in the same format as in RDB_Mail_PDF_Outlook however this didn't work either

    If you have any other ideas I'm all ears.

    Thanks,
    Last edited by callumlmcgrath; 05-09-2019 at 04:22 AM.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,744

    Re: PDF to Outlook

    1. Did you check that file is successfully saved in:
    Please Login or Register  to view this content.
    2. Change this:
    Please Login or Register  to view this content.
    into this:
    Please Login or Register  to view this content.
    if you pass parameter use it
    3. add
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    in both macros and check that everything is correct with path and name of file.

    EDIT: sorted FileName has not contains path.
    Check attached file.
    Attached Files Attached Files
    Last edited by KOKOSEK; 05-09-2019 at 05:10 AM.

  5. #5
    Registered User
    Join Date
    03-14-2019
    Location
    Essex
    MS-Off Ver
    2016
    Posts
    19

    Re: PDF to Outlook

    YES!! Thank you so much. It worked after point 2 so thank you very much

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,744

    Re: PDF to Outlook

    You welcome.
    Thanks for rep.

+ 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: 08-21-2018, 01:48 PM
  2. Outlook VBA needed for Counting emails in outlook by specific date
    By Marijke in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 07-12-2017, 10:12 AM
  3. Attach last saved file outlook/add this to quick step in Outlook
    By Nravota in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2015, 06:25 AM
  4. Outlook 2007, Referencing mail Item created from outlook template
    By thusidie in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 04:33 PM
  5. [SOLVED] Using Exell VBA to launch Outlook Email while separating lines in the body of Outlook.
    By Tazyote in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-27-2013, 01:18 PM
  6. [SOLVED] VBA Macro to print to Pdf format and place as attachment in Outlook (Excel & Outlook 2007)
    By Webman1012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 01:25 PM
  7. Share Task From Outlook 2010 to Outlook 2007 and Vice Versa
    By Hudas in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 10-22-2012, 03:01 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