Customer Service | Training | Contact Us
You are here: Home > User Forums > arcgis desktop discussion forums > Thread Replies

ArcGIS Desktop Discussion Forums

ArcGIS Desktop - Attribute Tables forum

VBA script for polygon area calculation   Avishek Chhibber Nov 04, 2009
Re: VBA script for polygon area calculation   Jake Diebolt Nov 10, 2009
Report Inappropriate Content • Top • Print • Reply    
Subject VBA script for polygon area calculation 
Author Avishek Chhibber 
Date Nov 04, 2009 
Message recently got 9.3 (arcview license) installed in my machine. not sure why i cannot run the good ol' VBA script for calculating polygon areas:
Dim dblArea as double
Dim pArea as IArea
Set pArea = [shape]
dblArea = pArea.area

keeps giving me an error message that macro not valid. can someone shed some light into this? 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: VBA script for polygon area calculation 
Author Jake Diebolt 
Date Nov 10, 2009 
Message Not sure why that isnt working. Is there a reason you can't use the "Calculate Geometry" tool instead?