- Joined
- Dec 13, 2017
- Messages
- 71
- Reaction score
- 19
I have placed this line of code in various positions on work sheets codes, & I have only been able to get it to run on one sheet.
It will run on the other sheets if the run button is clicked in the code window. I need it to run automatically. I even tried to do it as a call, no change.
here is the full code:
ActiveWindow.View=xlNormalView
It will run on the other sheets if the run button is clicked in the code window. I need it to run automatically. I even tried to do it as a call, no change.
here is the full code:
Code:
Private Sub Worksheet_Activate()
Application.ScreenUpdating = False
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
Application.DisplayFormulaBar = False
Application.DisplayStatusBar = Not Application.DisplayStatusBar
ActiveWindow.DisplayWorkbookTabs = False
Application.ScreenUpdating = False
'Turns scroll bars off for the indicated sheets
With ActiveWindow
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
Application.ScreenUpdating = True
ActiveWindow.View = xlNormalView
Range("F13").Select
End With
End Sub