Printing Problems

How to Set Excel PDF Export to Letter Size and Landscape Orientation

Natalie TaylorNatalie Taylor Nov 2, 2026 868 views

Question details

The user needs to export Excel worksheets as PDF files specifically in Letter size and Landscape orientation, but the current output generates an excessively large paper size.

How to Set Excel PDF Export to Letter Size and Landscape Orientation
Product
Excel
Device & OS
not provided
Scenario
Automating or configuring the PDF export of an Excel worksheet to ensure the layout matches standard printable dimensions.
Observed behavior
Excel worksheets are being exported as PDF files with a massive custom paper size of approximately 17.35 by 22.45 inches instead of the required Letter size in Landscape orientation.
Before you start

Before exporting your workbook, ensure that your default printer supports Letter size, and verify if a VBA macro is currently dictating your export settings.

Solution 1Recommended

Update VBA Page Setup Properties for PDF Export

Adjust the PageSetup properties in your Excel VBA macro to explicitly enforce Letter size and Landscape orientation before triggering the export.

When using VBA to export a PDF, Excel relies on the worksheet's PageSetup properties. If these are not explicitly defined, the PDF might inherit custom or unexpected dimensions.

1
Open the VBA Editor

Open your Excel workbook and press ALT + F11 to access the Visual Basic for Applications (VBA) editor.

2
Locate the Export Macro

Find the module containing the code that handles your PDF export.

3
Set Paper Size

Within the With ActiveSheet.PageSetup block (or equivalent), ensure you include the property .PaperSize = xlPaperLetter to force the document into Letter dimensions.

4
Change Orientation

Locate the orientation setting in the code. Change .Orientation = xlPortrait to .Orientation = xlLandscape.

5
Run Export

Save your code and run the macro to generate the PDF with the corrected Letter and Landscape formatting.

Update VBA Page Setup Properties for PDF Export
Code Validation: Ensuring both .PaperSize and .Orientation are declared right before the ExportAsFixedFormat method guarantees Excel applies these dimensions to the final PDF.
Easy PDF Exporting

Export to PDF Perfectly with WPS Spreadsheet

WPS Office offers a built-in, highly reliable PDF export feature that respects your exact page layout settings without requiring complex VBA code adjustments.

  1. 1. Open Your File in WPS: Launch WPS Office and open your spreadsheet file.
  2. 2. Adjust Page Layout: Navigate to the 'Page Layout' tab. Set 'Orientation' to Landscape and 'Size' to Letter.
  3. 3. Access PDF Export: Click the 'Menu' button in the top left corner, navigate to 'Export to PDF', and click it.
  4. 4. Confirm and Export: Review the settings in the dialog box to ensure they match your layout, then click 'Export' to save your file.
Built-in PDF converter avoids third-party plugin formatting issuesFully compatible with Microsoft Excel (.xlsx, .xls) and VBA macrosIntuitive Page Layout ribbon for instant size and orientation adjustmentsFree and lightweight alternative for daily spreadsheet and PDF tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why is my Excel PDF exporting in a huge custom size?

This usually happens if the print area is undefined or if the default printer driver dictates a custom scalable paper size. Setting explicit page setups (like Letter) before exporting overrides this behavior.

Does .Orientation = xlLandscape work in all versions of Excel?

Yes, the xlLandscape enumeration is a standard VBA property in Excel and works across all modern versions of Microsoft Excel and compatible macro-enabled spreadsheet programs.

How do I fit all my columns on one page in the PDF?

Under the Page Layout tab, click 'Page Setup' (the small arrow in the corner), go to the 'Page' tab, and select 'Fit to 1 page wide by 1 page tall' before exporting to PDF. In VBA, use .Zoom = False and .FitToPagesWide = 1.

Can I export only a specific range to PDF in landscape?

Yes. Select the specific cells you want to export, go to Page Layout > Print Area > Set Print Area. Ensure your orientation is set to Landscape, and when exporting, the PDF will only include that specific range.