Share via


PageSetup.PrintGridlines Property

Excel Developer Reference

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

Syntax

expression.PrintGridlines

expression   A variable that represents a PageSetup object.

Example

This example prints cell gridlines when Sheet1 is printed.

Visual Basic for Applications
  Worksheets("Sheet1").PageSetup.PrintGridlines = True

See Also