Skip to content

Instantly share code, notes, and snippets.

@DEARaison
Created January 26, 2023 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DEARaison/bae385f6b82f2b09ff89e8ee67da21f0 to your computer and use it in GitHub Desktop.
Save DEARaison/bae385f6b82f2b09ff89e8ee67da21f0 to your computer and use it in GitHub Desktop.
Scroll and zoom Excel
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