+ Reply to Thread
Results 1 to 5 of 5

Print to PDF with file name from reference cell

  1. #1
    Registered User
    Join Date
    11-07-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    91

    Print to PDF with file name from reference cell

    Hi all,

    Apologies if this has already been covered, I've tried searching but cannot find what i need. I am a complete beginner to VBA but hoping someone could help me with some code to create a PDF in the same folder as the excel file with the file name being the contents of cell A1 (which will contain a formula combining some text and a date).

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Print to PDF with file name from reference cell

    And with what content? The file name in A1 in what sheet? and what sheet will be print?
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    11-07-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    91

    Re: Print to PDF with file name from reference cell

    Sorry for the lack of info. Id like to print the active sheet with the cell A1 contained within the active sheet. The print margins would be set for the content i'd like printed to PDF (e.g I select the margins in page break preview as the content/margins would vary each time I print)

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Print to PDF with file name from reference cell

    HTML Code: 
    You need to set up print area.

  5. #5
    Registered User
    Join Date
    11-07-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    91

    Re: Print to PDF with file name from reference cell

    Great thanks tanasedn!
    Last edited by kk1352; 07-14-2021 at 07:08 AM.

+ 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. VBA-print as pdf w/ filename from a cell, & print in folder excel file is located
    By wpssnotoq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2017, 06:43 PM
  2. Replies: 1
    Last Post: 08-14-2015, 02:49 AM
  3. need print separate file base on the cell value of the PDF file (100 Pages).
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 02:36 PM
  4. Open 2nd file(CSV) from cell reference, copy columns to main file & close 2nd file
    By Langchop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2013, 05:09 AM
  5. Reference a Cell in a Print Header/Footer
    By RobHam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2011, 06:06 AM
  6. Print Area with reference to a cell value
    By stevewilde in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2010, 01:02 PM
  7. Print header from cell reference
    By Beeblebrox in forum Excel General
    Replies: 4
    Last Post: 04-23-2009, 04:20 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