Created
January 26, 2023 10:49
-
-
Save DEARaison/bae385f6b82f2b09ff89e8ee67da21f0 to your computer and use it in GitHub Desktop.
Scroll and zoom Excel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub setDefault() | |
Dim Worksheet As Worksheet | |
Application.ScreenUpdating = False | |
For Each ws In ActiveWorkbook.Worksheets | |
With ws | |
.Cells.Font.Name = "" | |
End With | |
ws.Activate | |
ws.[a1].Select | |
ActiveWindow.ScrollRow = 1 | |
ActiveWindow.ScrollColumn = 1 | |
ActiveWindow.Zoom = 85 | |
Next | |
ActiveWorkbook.Worksheets(1).Select | |
Application.ScreenUpdating = True | |
ActiveWorkbook.Save | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment