PrintGridlines Property [Excel 2003 VBA Language Reference]

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

Example

This example prints cell gridlines when Sheet1 is printed.

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

Applies to | PageSetup Object

See Also | DisplayGridlines Property