SheetViews object (Excel)
A collection of all the sheet views in the specified or active workbook window.
The following example returns the view count of the active window.
ActiveWindow.SheetViews.Count
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.