I work in GIS with VBA. I have 2 Points layer.One of them is City points and another is hydro station points.I want write code in vba for selecting one point from station layer and finding closest city to this selected point.On the other hand I should find nearest point to a selected point. Please help me.
Id advise searching the archvied ESRI forums as this will have been asked before.
Assuming you have an ArcInfo license, have you tried calling the Near tool within your script? It sounds a lot like what you're after.