Option Explicit
Private Declare Function GetSystemMetrics Lib "user32.dll" (ByVal nIndex As Long) As Long
Const SM_CXSCREEN = 0
Const SM_CYSCREEN = 1
Private Sub Workbook_Open()
Dim x As Long
Dim y As Long
Dim z As Long
Dim sh
z = ActiveSheet.Index
x = GetSystemMetrics(SM_CXSCREEN)
y = GetSystemMetrics(SM_CYSCREEN)
If x = 1024 And y = 768 Then
For Each sh In ThisWorkbook.Sheets
sh.Activate
ActiveWindow.Zoom = 100
Next
End If
If x = 1280 And y = 1024 Then
For Each sh In ThisWorkbook.Sheets
sh.Activate
ActiveWindow.Zoom = 125
Next
End If
Sheets(z).Activate
End Sub
citovat