Change the Zoom Level to 75% on all sheets?

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
Code:
Sub foo()
Dim WS As Worksheet
    For Each WS In Worksheets
        WS.Activate
        ActiveWindow.Zoom = 75
    Next WS
End Sub
 

cart0250

Active Member
Joined
Jun 24, 2006
Messages
275
Try:

Code:
Sub zoomIt()
Dim ws As Worksheet
For Each ws In Worksheets
    ws.Activate
    ActiveWindow.Zoom = 75
Next ws
End Sub
 

scoha

Active Member
Joined
Jun 15, 2005
Messages
428
How about being able to set different zoom settings for each sheet in the workbook?
 

Jack in the UK

Well-known Member
Joined
Feb 16, 2002
Messages
3,215
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
 

Forum statistics

Threads
1,181,103
Messages
5,928,077
Members
436,587
Latest member
Slicesofquince

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
Top