Myzoomin vbaSub MyZoomIn()

Sub MyZoomIn()
Dim pDoc As IMxDocument
Dim pEnv As IEnvelope
Set pDoc = ThisDocument
Set pEnv = pDoc.ActivatedView.Extent
pEnv.Expand 0.6, 0.6, True
pDoc.ActiveView.Extent = pEnv
pDoc.ActiveView.Refresh
End Sub

close and return to arcmap

你可能感兴趣的:(Myzoomin vbaSub MyZoomIn())