+ Reply to Thread
Results 1 to 8 of 8

Sending an email of a newly created PDF file through VBA

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    Detroit, MI
    MS-Off Ver
    2010
    Posts
    55

    Sending an email of a newly created PDF file through VBA

    Hello I have the following code working great. It saves the first sheet of my workbook as a PDF file. Now I want this same code to Email this file (PDF file it created) to an email group. Any ideas on how i can accomplish this task?

    Here is my Current code.

    Please Login or Register  to view this content.
    Last edited by Johnnyv015; 05-12-2015 at 06:32 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sending an email of a newly created PDF file through VBA

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    09-08-2014
    Location
    Detroit, MI
    MS-Off Ver
    2010
    Posts
    55

    Re: Sending an email of a newly created PDF file through VBA

    You sir are a savage! Thank You so much for your help!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: Sending an email of a newly created PDF file through VBA

    You sir are a savage!
    Is that a compliment these days?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sending an email of a newly created PDF file through VBA

    I'm taking it!

    daffodil-11, SAVAGELY PRETENDING TO KNOW HOW TO CODE!

    Also, in case you were wondering, there's a lot of codey bits associated with an email.

    Please Login or Register  to view this content.
    Also, I struggled with copying a whole range of cells directly into the Body, but if you want you can Range("a1:A23").Copy before you open the email, and then after the End With of the email (assuming you don't Send but use .Display) you can then add

    Please Login or Register  to view this content.
    Which will force an adorable copy and paste directly into the email body as a table of the cells.



    And of course, now that you got a nice Late Binding code for Outlook, you can even run hot little Loop macros that run through a 100 rows of A looking for a certain criteria, send an email to B, copied C, with subject D, etc, etc. Hundreds of emails in seconds.
    Last edited by daffodil11; 05-12-2015 at 06:54 PM.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: Sending an email of a newly created PDF file through VBA


  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sending an email of a newly created PDF file through VBA

    That link was utterly savage.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,622

    Re: Sending an email of a newly created PDF file through VBA


+ 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. Copy Rows by Cell Value, Paste to Newly Created Worksheet, Email Contents
    By TylerK_BLL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2015, 03:40 PM
  2. [SOLVED] Email newly created line in excel workbook
    By klospros in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-21-2014, 11:48 AM
  3. [SOLVED] Newly created file not saving at the given location!
    By Sandr54 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2014, 02:24 AM
  4. copying data from excel into a newly created xml file
    By m_Jawed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2014, 10:08 AM
  5. Creating a file in a newly created folder.
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-12-2010, 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