Setting all Excel sheets at a defined zoom level

前端 未结 3 2005
说谎
说谎 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 15:07

    Option Explicit
    
    Sub FixSheets()
        Dim ws As Worksheet
        For Each ws In Worksheets
            ws.Activate
            ws.UsedRange.Select
            ActiveWindow.Zoom = True 'Zoom sur la sélection
            ActiveCell.Select
        Next ws
    End Sub
    

提交回复
热议问题