+ Reply to Thread
Results 1 to 7 of 7

Emailing Individual Worksheets as a PDF using Outlook 2016

  1. #1
    Registered User
    Join Date
    06-19-2017
    Location
    London, England
    MS-Off Ver
    MS Office 365 - 2016
    Posts
    3

    Emailing Individual Worksheets as a PDF using Outlook 2016

    Hi All,

    I've managed to create a macro whereby it saves individual worksheets as a separate PDF but I need some help with the next step.

    Once the worksheet has been saved as a PDF, I would like Outlook to open up, create a new email with the individual attachment.

    This is what I have so far:

    Please Login or Register  to view this content.

    Any suggestions would be most grateful.

    Thanks
    Karima
    Last edited by karima_e; 06-19-2017 at 06:33 AM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Emailing Individual Worksheets as a PDF using Outlook 2016

    Thank you for the edit.

    You could simply store the derived filename in a variable and use that to attach to the email...

    Please Login or Register  to view this content.
    Last edited by cytop; 06-19-2017 at 06:40 AM.

  3. #3
    Registered User
    Join Date
    06-19-2017
    Location
    London, England
    MS-Off Ver
    MS Office 365 - 2016
    Posts
    3

    Re: Emailing Individual Worksheets as a PDF using Outlook 2016

    Thank you for coming back to me.

    I have amended the code but for some reason now it doesn't register the Outlook part of the coding. It just simply saves each worksheet as a PDF and then finishes.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Emailing Individual Worksheets as a PDF using Outlook 2016

    You don't do anything with the email after generating it so it just gets dumped. You need to either
    Please Login or Register  to view this content.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,273

    Re: Emailing Individual Worksheets as a PDF using Outlook 2016

    Please Login or Register  to view this content.
    Last edited by bakerman2; 06-19-2017 at 08:27 AM.
    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.

  6. #6
    Registered User
    Join Date
    06-19-2017
    Location
    London, England
    MS-Off Ver
    MS Office 365 - 2016
    Posts
    3

    Re: Emailing Individual Worksheets as a PDF using Outlook 2016

    Amazing! It is now working! Thank you for your help

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,273

    Re: Emailing Individual Worksheets as a PDF using Outlook 2016

    You're welcome and 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. [SOLVED] VBA emailing using Outlook
    By scrizo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-22-2015, 10:22 AM
  2. Emailing individual files (with oft template)
    By MooKwia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2013, 10:32 PM
  3. [SOLVED] Emailing individual recipients using Outlook from an Excel data source
    By Shirley Munro in forum Excel General
    Replies: 2
    Last Post: 04-23-2012, 01:29 PM
  4. Excel 2007 : Emailing Individual Sheets of Workbook
    By jeanie in forum Excel General
    Replies: 1
    Last Post: 07-06-2010, 03:51 PM
  5. Emailing Excel to Outlook
    By stevewilde in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2009, 07:55 AM
  6. emailing with outlook
    By DSJ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2008, 10:20 AM
  7. Macro Emailing an XLS via Outlook
    By ynissel in forum Excel General
    Replies: 5
    Last Post: 05-26-2005, 05:15 PM

Tags for this Thread

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