+ Reply to Thread
Results 1 to 6 of 6

Excel Convert to PDF and Save in a Folder

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Excel Convert to PDF and Save in a Folder

    Hello,

    I have attached a workbook where I created a command button on the first sheet called "CREATE PDF". I'm looking for a code that will convert this sheet into a pdf and save
    in a folder on our network drive -------> 'G:\Finance\Corporate Accounting\SHIRLEY\A. Financial Planning Fee Payment Processing'

    If possible could the naming convention for the pdf be the current date yyyymmdd + the content of J6 on the worksheet. Example 20170818Invoice#1

    Any help on this would be much appreciated.

    (don't know if it's also possible that once saved would take you to the pdf in the folder or open the pdf on the screen, just wondering but the top portion would be amazing if it can be done)

    Thank you very much
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Excel Convert to PDF and Save in a Folder

    .
    Please Login or Register  to view this content.
    Last edited by Logit; 08-18-2017 at 05:59 PM.

  3. #3
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Excel Convert to PDF and Save in a Folder

    Hi,

    Thank you. I inserted the code into my command button but it doesn't seem to be running?

    Capture.PNG

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Excel Convert to PDF and Save in a Folder

    .
    If I place my desktop path in the fName string, it creates a PDF copy here.

    ex: Fname = "C:\Users\My\Desktop\" & Format(Now, "yyyymmdd") & Sheets("Invoice").Range("J6").Value

    If you are at home and not work, try using your desktop path.

  5. #5
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Excel Convert to PDF and Save in a Folder

    Excellent. Thank you so much!

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Excel Convert to PDF and Save in a Folder

    You are welcome

+ 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: 3
    Last Post: 08-09-2017, 05:09 AM
  2. Save Hyperlinks from excel to PPT in specified Folder
    By lesliewheeler in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2017, 06:16 AM
  3. [SOLVED] Automatically Convert Txt files in a folder to Excel
    By tommyfernandez in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2016, 08:01 PM
  4. [SOLVED] VBA Code to save to a folder within a folder within a folder all based on cell values.
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-24-2016, 04:24 PM
  5. [SOLVED] Lookup folder from cell text, then save excel file in this folder
    By dodgybob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2014, 09:00 AM
  6. Macro to Convert .csv info to .xlsx and save it in another folder under previous name
    By YogurtFace in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 07:14 PM
  7. Replies: 6
    Last Post: 08-11-2006, 03:41 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