PageSetup.PrintGridlines Property (Excel)

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
Show:
© 2014 Microsoft