DisplayHeadings Property Example

This example turns off the display of row and column headings in the active window in Book1.xls.

Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate
ActiveWindow.DisplayHeadings = False

Send feedback to MSDN.Look here for MSDN Online resources.