Вот, родил
Public Sub zoom()
Dim env As IEnvelope
Dim dMaxX As Double, dMaxY As Double
Dim dMinX As Double, dMinY As Double
Dim pEnumF As IEnumFeature
Dim pFeature As IFeature
dMaxX = 0
dMaxY = 0
dMinX = 0
dMinY = 0
Set pMxDoc = ThisDocument
Set pEnumF = pMxDoc.FocusMap.FeatureSelection
Set pFeature = pEnumF.Next
dMaxX = pFeature.Shape.Envelope.XMax
dMaxY = pFeature.Shape.Envelope.YMax
dMinX = pFeature.Shape.Envelope.XMin
dMinY = pFeature.Shape.Envelope.YMin
Do Until pFeature Is Nothing
If pFeature.Shape.Envelope.XMax > dMaxX Then
dMaxX = pFeature.Shape.Envelope.XMax
End If
If pFeature.Shape.Envelope.YMax > dMaxY Then
dMaxY = pFeature.Shape.Envelope.YMax
End If
If pFeature.Shape.Envelope.XMin < dMinX Then
dMinX = pFeature.Shape.Envelope.XMin
End If
If pFeature.Shape.Envelope.YMin < dMinY Then
dMinY = pFeature.Shape.Envelope.YMin
End If
Set pFeature = pEnumF.Next
Loop
Set env = New Envelope
env.XMax = dMaxX
env.YMax = dMaxY
env.XMin = dMinX
env.YMin = dMinY
'env.Expand 2, 2, True
pMxDoc.ActiveView.Extent = env
pMxDoc.ActiveView.Refresh
pMxDoc.UpdateContents
End Sub