+ Reply to Thread
Results 1 to 5 of 5

Macro - xlsm to pdf with specific file name & file path - attach to email

  1. #1
    Registered User
    Join Date
    08-02-2021
    Location
    Rockhampton, Australia
    MS-Off Ver
    365
    Posts
    2

    Macro - xlsm to pdf with specific file name & file path - attach to email

    Hi everyone, I have found a few examples online however my knowledge of coding is so basic I can't edit them to make it work in my scenario...
    Any help would be massively appreciated! My boss has given me a tight deadline and I'm lost... I have cross posted this as I need an answer ASAP..

    http://www.mrexcel.com/board/threads...email.1178068/

    http://www.ozgrid.com/forum/index.ph...tach-to-email/

    What I need to do
    • Export current active sheet (Print Area Only) as a PDF
    • Save the File with the contents of Cell I1 as the file name
    • Save the file to Q:\3. PCR Reporting
    • Attach the file to a new message in Outlook and display
    • Leave To & CC Blank
    • Subject: Cell I1 with no file format
    • Body
    • Hi, Test (I will fill this in)
    Last edited by AliGW; 08-02-2021 at 07:38 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,201

    Re: Macro - xlsm to pdf with specific file name & file path - attach to email

    Administrative Note:

    Welcome to the forum.

    You have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. I cannot do it for you, as I don't know where the cross-posts are. You will not be able to post the links without adding a couple of gaps to the URL.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,201

    Re: Macro - xlsm to pdf with specific file name & file path - attach to email

    Thanks. I have added the links to your opening post.

    Please share any solution you get here.

  4. #4
    Registered User
    Join Date
    08-02-2021
    Location
    Rockhampton, Australia
    MS-Off Ver
    365
    Posts
    2

    Question Re: Macro - xlsm to pdf with specific file name & file path - attach to email

    This is where I am at currently. Any help would be so greatly appreciated!


    Still a couple of things to fix.

    File name saves as "Post%20Campaign%20Report_Post%20Campaign%20Report.pdf"
    I want it to save as Range I1
    The file saves only in AppData Outlook Cache - how do I specify a specific location to save the file?

    HTML Code: 

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Macro - xlsm to pdf with specific file name & file path - attach to email

    Possibly...
    Please Login or Register  to view this content.

+ 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] Attach file to email n send; personalisd email message v file name, repeat for all files
    By bridge4444 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2021, 10:44 PM
  2. Replies: 5
    Last Post: 12-22-2020, 02:47 AM
  3. attach file in an outlook email from specific folder
    By 9599lorenzo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2017, 07:07 AM
  4. Switched to Windows 10 now macro won't attach file to email
    By lsargent in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2016, 03:14 PM
  5. Data from closed xlsm file without defined file path???
    By dbrizor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2015, 07:27 AM
  6. [SOLVED] Macro to attach an additional file to and outlook email
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 01:27 PM
  7. How to attach a local file to email using macro?
    By tanks1308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2007, 12:33 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