+ Reply to Thread
Results 1 to 4 of 4

PDF Export issue

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2021
    Location
    uk
    MS-Off Ver
    2016
    Posts
    3

    PDF Export issue

    Hi,
    I have belo issue when exporting to PDF pages are in various sizes see attached photo
    issue.jpg

    I use below VBA code:
    Sub SaveActiveWorkbookAsPDF() 
    
    sheetArray = Array("PAGE1", "PAGE2")
    Sheets(sheetArray).Select
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
        Filename:="TEST") & ".pdf"
    
    End Sub
    Last edited by davesexcel; 01-30-2021 at 07:41 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: PDF Export issue

    Have you set the print ranges for each sheet?

  3. #3
    Registered User
    Join Date
    01-30-2021
    Location
    uk
    MS-Off Ver
    2016
    Posts
    3

    Re: PDF Export issue

    I moved graph to new sheet and option to set print area is greyed out

  4. #4
    Registered User
    Join Date
    01-30-2021
    Location
    uk
    MS-Off Ver
    2016
    Posts
    3

    Re: PDF Export issue

    Issue sorted:
    set margin and size in page layout tab the same, unticked "scale with document" in:
    Page layout>>Margins>>custom margins>>Header/Footer>>scale with document
    sorted.jpg

+ 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. Export Images Issue
    By thanny88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2020, 05:53 AM
  2. Print or Export Issue
    By exadus in forum Excel General
    Replies: 0
    Last Post: 10-10-2019, 06:17 PM
  3. [SOLVED] Macro to export tab to csv file issue
    By thaykhov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 05:25 AM
  4. Tricky export issue to text file
    By deve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2011, 08:16 AM
  5. Copy and export picture VBA - pixels issue
    By sivanvega in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2011, 08:06 PM
  6. Fixing A Data Export Issue
    By McNulty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2009, 01:03 PM
  7. Issue with Macros and Export functions
    By mess07 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-30-2009, 05:55 AM

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