Setting all Excel sheets at a defined zoom level

前端 未结 3 2018
说谎
说谎 2020-12-28 14:30

I have more than twenty sheets in an Excel workbook (file). Is there some code snippet or a command I could apply/use so that all sheets could be reset to let\'s say 85% zoo

3条回答
  •  余生分开走
    2020-12-28 14:58

    Sub SetZoom()
        Dim ws As Worksheet
    
        For Each ws In Worksheets
            ws.Select
            ActiveWindow.Zoom = 85 ' change as per your requirements
        Next ws
    End Sub
    

    BTW, if you simply select all worksheets in your workbook using the tabs you can then set the zoom to 85% and it will apply to all worksheets

提交回复
热议问题