Associate the VBA script with a button in ArcMap. Select a point layer (point shapefile or point feature class geodatabase) in the TOC.
This VBA script adds two new fields X,Y to the attribute table of the selected point layer and fills the fields with the X,Y coordinates. |