Paul Sansom
Board Regular
- Joined
- Jan 28, 2013
- Messages
- 178
- Office Version
- 2021
- 2016
- Platform
- Windows
Hi
Is there away to display all headings without using Active Window.
The following code works fine but i don't want to open and activate each sheet just to turn on Headings, as this triggers other objects like WS_Actvate etc.
Cheers Paul
Is there away to display all headings without using Active Window.
The following code works fine but i don't want to open and activate each sheet just to turn on Headings, as this triggers other objects like WS_Actvate etc.
Code:
For Each ws In Sheets
ws.Visible = xlSheetVisible
ws.Activate
With ActiveWindow
.DisplayHeadings = True
' more
End With
Next ws
Cheers Paul