Change the Zoom Level to 75% on all sheets?

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Code:
Sub foo()
Dim WS As Worksheet
    For Each WS In Worksheets
        WS.Activate
        ActiveWindow.Zoom = 75
    Next WS
End Sub
 
Upvote 0
Try:

Code:
Sub zoomIt()
Dim ws As Worksheet
For Each ws In Worksheets
    ws.Activate
    ActiveWindow.Zoom = 75
Next ws
End Sub
 
Upvote 0
How about being able to set different zoom settings for each sheet in the workbook?
 
Upvote 0
Not sure how You want to do this, but something to play with. Copy both codes into a standard Excel VBE Module

jiuk
Rich (BB code):
Dim x As Long

Sub foo()
' Our WEB Site - www.excel-it.com
x = 10
Dim WS As Worksheet
    For Each WS In Worksheets
        WS.Activate
        ActiveWindow.Zoom = x + (100 / mySizA)
        x = x + mySizA
    Next WS
End Sub
Rich (BB code):
Function mySizA() As Integer
Dim a As Long
Dim vResult
a = Worksheets.Count
vResult = a
mySizA = vResult
End Function
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,981
Members
449,058
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top