logo
search
Printing Problems

How to Stop Excel Gridlines from Appearing in Exported PDFs

Rana GarciaRana Garcia Sep 28, 2026 869 views

Question details

The user wants to prevent default gridlines from being visible when saving or exporting a worksheet as a PDF file.

How to Stop Excel Gridlines from Appearing in Exported PDFs
Product
Excel
Device & OS
not provided
Scenario
Exporting an Excel spreadsheet to a PDF format while ensuring the background gridlines are hidden in the final document.
Observed behavior
Gridlines continue to appear in the exported PDF file even when they are not meant to be printed or are not visibly selected for export.
Before you start

Verify whether the lines you see in the PDF are the default Excel gridlines or manually applied cell borders, as each requires a different method to remove.

Solution 1Recommended

Disable Gridlines in Page Layout Settings

The most common reason gridlines appear in exported PDFs is because the 'Print Gridlines' option is enabled in the worksheet's page setup.

Excel handles gridlines differently for viewing on screen and for printing/exporting. Disabling the print setting will remove the gridlines from the PDF output while keeping them visible while you work.

1
Navigate to Page Layout

Open your workbook and click on the Page Layout tab located on the top ribbon.

2
Locate Sheet Options

Find the Sheet Options group within the Page Layout ribbon.

3
Uncheck Print Gridlines

Under the Gridlines section, uncheck the box labeled 'Print'. You can leave the 'View' box checked if you still want to see gridlines while editing.

4
Export to PDF

Go to File > Export > Create PDF/XPS Document, or use Save As to generate the PDF again and verify the gridlines are gone.

Disable Gridlines in Page Layout Settings
Quick Tip: You can also access this setting by opening the Page Setup dialog box, navigating to the Sheet tab, and unchecking 'Gridlines' under the Print section.
Use WPS Spreadsheet

Export Clean PDFs Easily with WPS Office

WPS Office provides an intuitive, built-in PDF converter that makes it simple to manage your worksheet's appearance. You can easily toggle gridlines and control print areas for a flawless PDF export.

  1. 1. Open Your File: Launch WPS Spreadsheet and open the document you wish to convert.
  2. 2. Adjust Print Settings: Go to the Page Layout tab and uncheck the 'Print' box under the Gridlines section.
  3. 3. Export as PDF: Click the Menu button, choose 'Export to PDF', configure your save options, and click Export.
Easily toggle gridline visibility for viewing and printing with one click.Built-in PDF converter guarantees high-quality, glitch-free output.Fully compatible with Microsoft Excel (.xlsx, .xls) formats.Lightweight, fast, and completely free to use.
microsoft office alternative - wps office

Frequently Asked Questions

Why do some lines still show up on my PDF after turning off print gridlines?

If you still see lines, they are likely manually applied cell borders instead of default background gridlines. Select the affected cells, go to the Home tab, click the Borders drop-down arrow, and select 'No Border'.

Can I keep gridlines visible on my screen but hide them in the PDF?

Yes. In the Page Layout tab under Sheet Options, you will see two checkboxes for Gridlines: 'View' and 'Print'. Keep 'View' checked to see them on your monitor, but uncheck 'Print' so they do not appear in exported PDFs or physical prints.

Does my PDF viewer affect how Excel exports gridlines?

Generally, the PDF viewer only reads the file generated by Excel. However, if you are using a third-party 'Print to PDF' tool to create the file instead of Excel's built-in 'Save as PDF' feature, the settings within that third-party printer driver might override Excel's page setup.