+ Reply to Thread
Results 1 to 3 of 3

Print to PDF into created folder in Workbook location

  1. #1
    Registered User
    Join Date
    10-01-2019
    Location
    Australia
    MS-Off Ver
    1908
    Posts
    9

    Exclamation Print to PDF into created folder in Workbook location

    Hi guys,

    Need help on this one please, not sure how to go about doing it. I have the code below that I have been using up until now which prints the active sheet to PDF in the Downloads folder.

    What I would like it to do is to do the following, in sequence:


    1. Create a new folder in the location of the Workbook. Name this folder based on the contents of worksheet cells "B4" and "B5", then the current date and time.

    Name the folder in this order: "B4"" - ""B5"" - ""dd.mm.yyyy hh:mm:ss"


    2. Inside this newly created folder, run the code below so that the PDF is generated inside.


    Thanks for the help guys



    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question Re: Print to PDF into created folder in Workbook location


    Hi,

    under Windows only ?
    Any sample content of cells B4 & B5 and accordingly the expected fuill destination folder ?
    Last edited by Marc L; 05-11-2023 at 09:43 AM.

  3. #3
    Registered User
    Join Date
    10-01-2019
    Location
    Australia
    MS-Off Ver
    1908
    Posts
    9

    Re: Print to PDF into created folder in Workbook location

    Hi Marc,

    Got this working yesterday, please see below:

    Please Login or Register  to view this content.
    Thank you

+ 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] Move the existing (opened) workbook to a new folder location
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2016, 04:31 PM
  2. Replies: 1
    Last Post: 06-17-2014, 12:15 PM
  3. create new folder at one location and copy photos in that folder from other location
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 05:20 AM
  4. [SOLVED] Saving a Print Area as PDF onto a user defined folder location
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-10-2013, 10:27 AM
  5. [SOLVED] Macro to prompt user for folder location and save acitve workbook.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2013, 06:20 PM
  6. [SOLVED] save workbook created from templete to a specific folder
    By imh in forum Excel General
    Replies: 1
    Last Post: 06-02-2006, 06:35 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