Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim lZoom As Long
Dim lZoomDV As Long
Dim lDVType As Long
ActiveWindow.Zoom = 100
If Not Intersect(Target, Range("[COLOR=#ff0000]AK11,AK12[/COLOR]")) Is Nothing Then
ActiveWindow.Zoom = 85
GoTo exitHandler
End If
lZoom = Range("A11").Value
lZoomDV = Range("A12").Value
lDVType = 0
' ”CL9” = 57
' ”CL10” = 65
Application.EnableEvents = False
On Error Resume Next
lDVType = Target.Validation.Type
On Error GoTo errHandler
If lDVType <> 3 Then
With ActiveWindow
If .Zoom <> lZoom Then
.Zoom = lZoom
End If
End With
Else
With ActiveWindow
If .Zoom <> lZoomDV Then
.Zoom = lZoomDV
End If
End With
End If
exitHandler:
Application.EnableEvents = True
Exit Sub
errHandler:
GoTo exitHandler
End Sub