PageSetup.PrintGridlines Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if cell gridlines are printed on the page. Applies only to worksheets. Read/write Boolean.

expression .PrintGridlines

expression A variable that represents a PageSetup object.

This example prints cell gridlines when Sheet1 is printed.

Worksheets("Sheet1").PageSetup.PrintGridlines = True