+ Reply to Thread
Results 1 to 3 of 3

Email 2 sheet ranges as 2 pdf files to email specified in a cell

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    Email 2 sheet ranges as 2 pdf files to email specified in a cell

    Hello,

    i have a macro that prints a range in CSS sheet into pdf and attach that pdf to a Outlook email. Also that email has a subject, destination and cc according to cells in that same sheet. It works great for my purposes.


    However sometimes i have the need to send 1 email with that same pdf attached and also a pdf attached of a second sheet VSP, with same rules, range defined in VSP cell AY10, email destination, body text... The same.

    First macro for CSS is great, don´t wanna change anything

    I just need a second macro (very similar to first) that will create an email with first pdf (css sheet) and also a second pdf (vsp sheet), with name as in VSP cell AY16, attach both files to a Outlook email with body text as in vsp AY 14, email destination AY19, CC as in AY12.


    Can someone help me with the code to create email that attach both pdf´s ?

    Attached will be a example file with code working great for 1 sheet

    Many thanks and hoping someone can help.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Email 2 sheet ranges as 2 pdf files to email specified in a cell

    You can create the pdf for the second sheet and then add another attachment.
    I had to remove the body html line, you will need to replace it in your code.
    Forum does not like html tags in replies.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    Re: Email 2 sheet ranges as 2 pdf files to email specified in a cell

    Hi,

    I already copied your code to my original file and is working great! Many many thanks for the help.

    Have a nice day.

+ 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. Send bulk email from Excel issues: Attach multiples files, copy visible ranges & signature
    By randaubienghoc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-20-2020, 01:51 AM
  2. Replies: 5
    Last Post: 04-29-2020, 11:12 AM
  3. 1 email per email address, include cell value in email subject
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-31-2019, 10:27 PM
  4. Adding range from multiple files with same sheet to email as body
    By MrMyagiii in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2018, 03:26 AM
  5. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  6. Email a copy of a sheet to a specific person using an email on the worksheet. - VBA
    By j_lad_1999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2009, 11:38 AM
  7. email one sheet to many recipients based on email list
    By cdl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2008, 11:12 AM

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