+ Reply to Thread
Results 1 to 4 of 4

Print to PDF

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Print to PDF

    Hello,

    I am trying to insert a command button to have staff print a section of a excel sheet template to a pdf. I have been able to set up the command button along with a basic print to PDF macro.

    The additional items I would like to add is to have an input box show that would have the staff name the saved PDF and also only print the range of A1 to G40 to the PDF.

    Any help would be a great assist!

    Thank you,
    Nick


    Currently I have this for the code:

    Activesheet.ExportAsFixedFormat Type:=xlTypePDF

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Print to PDF

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Re: Print to PDF

    Thanks! This exported did everything I was looking for except for one item. The print area. It printed the whole active sheet and not the section only of A1:G40. What do I need differently to only print that active section?

    Thanks,
    Nick

  4. #4
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Re: Print to PDF

    Never mind. I see it is working great!

    Thanks!

+ 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. Print until a specified point, print a pdf then print from excel again
    By orkula in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2017, 10:17 AM
  2. Replies: 2
    Last Post: 08-29-2016, 01:36 PM
  3. Disabled print toolbar and menu but Print Macro button cannot print also...
    By zein97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2014, 01:42 PM
  4. Set print area of selected range then print preview if ok then print the document!
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 07:10 AM
  5. [SOLVED] Print array code for a series of pages that will also determine print area required?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2012, 11:46 PM
  6. VBA to set print range, open box asking for print qty, print, then redefine print area
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 06:43 PM
  7. Replies: 4
    Last Post: 02-17-2006, 08:36 AM

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