+ Reply to Thread
Results 1 to 3 of 3

Generate PDF with all Sheets

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    110

    Generate PDF with all Sheets

    Hi All,

    I have a big Excel file with 20+ sheets. All these sheets have different margins and layouts.

    I need to generate a Single PDF with all these sheets. Is it possible?

    When I save the file as PDF, it converts only the current sheet and NOT the whole file. As I said all my sheets have different margins and layouts, I can not combine them into a single sheet.

    Please help.
    Last edited by Tejas.T; 03-14-2014 at 12:38 AM.

  2. #2
    Registered User
    Join Date
    02-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Generate PDF with all Sheets

    Try This:
    Sub Savepdf()
    Application.ScreenUpdating = False
    Dim fName As String
    With ActiveWorkbook
        fName = "Your_PDF_File_Name"
        .ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
                fName & ".pdf", Quality:=xlQualityStandard, _
                IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
    End With
    Application.ScreenUpdating = True
    End Sub
    Put this code in Standard Module.


    -chinraj-

  3. #3
    Forum Contributor
    Join Date
    10-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: Generate PDF with all Sheets

    Hi chinraj,

    Thank you very much! It worked perfectly

+ 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. Automatically generate timecards (new sheets)
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 05-19-2013, 02:19 AM
  2. Replies: 0
    Last Post: 05-09-2013, 10:19 AM
  3. Generate Sheet based on other sheets
    By room7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2012, 10:54 AM
  4. [SOLVED] Efficiently Generate 88 New Chart Sheets
    By Takeadoe in forum Excel General
    Replies: 3
    Last Post: 07-05-2006, 09:50 AM
  5. [SOLVED] Comparing columns iin 2 sheets to generate one
    By CCTD via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-26-2005, 04:05 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