D
Don Wiss
I'd like to add a button to my application that sets all the sheet zooms to
a zoom level as specified by the user. The below works, but is there a
simpler way?
Sub Zoom()
Dim WS As Worksheet, OrgWS As Worksheet
Application.ScreenUpdating = False
Set OrgWS = ActiveSheet
For Each WS In Application.Worksheets
WS.Select
ActiveWindow.Zoom = 85
Next WS
OrgWS.Select
End Sub
The above would have problems with hidden sheets. So to work properly it
would have to be modified to detect them, then to rehide them.
Don <www.donwiss.com> (e-mail link at home page bottom).
a zoom level as specified by the user. The below works, but is there a
simpler way?
Sub Zoom()
Dim WS As Worksheet, OrgWS As Worksheet
Application.ScreenUpdating = False
Set OrgWS = ActiveSheet
For Each WS In Application.Worksheets
WS.Select
ActiveWindow.Zoom = 85
Next WS
OrgWS.Select
End Sub
The above would have problems with hidden sheets. So to work properly it
would have to be modified to detect them, then to rehide them.
Don <www.donwiss.com> (e-mail link at home page bottom).