The PrintRowAndColumnHeader property returns or sets whether row and column headers are printed. Returns a Boolean.
Syntax
object.PrintRowAndColumnHeader
object.PrintRowAndColumnHeader = Headers
Parameter |
Type |
Description |
Headers |
Boolean |
required; true to print headers |
Example 1
This example returns whether or not row and column headers are printed.
Debug.Print WksPageSetup. PrintRowAndColumnHeader
Example 2
This example demonstrates how to print the row and column headers.
WksPageSetup.PrintRowAndColumnHeader = True
Used by: WksPageSetup object