Is This Content Helpful?
We're glad to know this article was helpful.
Instructions provided describe how to use the Field Calculator to calculate latitude and longitude values for point features.
Using VBA Script Code in the Field Calculator, a field of type double can be populated with latitude or longitude values.
Dim Output As Double
Dim pPoint As IPoint
Set pPoint = [Shape]
Output = pPoint.X
The above code is for calculating Longitude. X should be changed to Y to calculate Latitude values.