+ Reply to Thread
Results 1 to 1 of 1

Print worksheet to PDF VBA

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Print worksheet to PDF VBA

    Using this code at the bottom of my macro to export certain sheets as PDF. Working well but I am looking to add 2 things:
    1. Is there anyway I can add Page #'s to the PDF upon export.
    2. Looking to not open the PDF after it runs

        ThisWorkbook.Sheets(Array("Summary", "Res", "Det", "Apt", "Row", "Semi", "HPI Summary")).Select
    
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "s:\Location\443.pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, _
         IgnorePrintAreas:=False, OpenAfterPublish:=True
    
        
        Windows("443.xlsm").Activate
        'ActiveWindow.Close
    Last edited by JPSIMMON; 10-21-2015 at 07:07 PM.

+ 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 Multiple Worksheet Print Macro
    By cbjfan2009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2015, 12:35 PM
  2. Replies: 8
    Last Post: 07-17-2014, 04:33 PM
  3. Replies: 3
    Last Post: 05-26-2014, 02:21 AM
  4. Replies: 0
    Last Post: 05-22-2013, 01:17 PM
  5. Randomly sample 30 columns from worksheet input and print them in worksheet Output
    By Savan87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2012, 01:00 PM
  6. [SOLVED] Macro to print the current worksheet WITHOUT having Print Preview
    By terrydennis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2012, 11:00 AM
  7. VBA code to print several print areas in one worksheet
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2010, 03:24 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