Search notes:

Excel Object Model: WorksheetView

The WorksheetView object controls «Look and Feel» settings.

Obtaining an instance of a worksheetView object

An instance of a worksheetView object is obtained via the window object:
activeWorkbook.windows(1).activeSheetView.displayGridlines = false
activeWorkbook.windows(1).sheetViews("lcfw").displayFormulas = false
activeWorkbook.windows(1).sheetViews(activeSheet.name).displayFormulas = false

activeWindow.activeSheetView.displayGridlines = false

… etc etc …

Display* properties

The interesting properites start with Display*:
DisplayFormulas display or hide formulas. The Ribbon equivalent is Formulas -> Formula Auditing -> Show Formulas. Not the same thing as application.displayFormulaBar.
DisplayGridlines show or hide gridlines. In the ribbon, gridlines can be shown using the corresponding option under View -> Show
DisplayHeadings show or hide headings. In the ribbon, gridlines can be shown using the corresponding option under View -> Show
DisplayOutline
DisplayZeros
thisWorkbook.windows(1).sheetViews(1).displayFormulas = true
Compare with the display* properties of the Application object and the display* options of the window object.

See also

SheetViews
Excel Object Model

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1745370001, '160.79.109.247', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Excel/Object-Model/WorksheetView/index(71): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78