Create a Point Object in VBA

Discussion created by dglongcake31 on Mar 24, 2011
Latest reply on May 27, 2011 by my_backpack
I am try to move a Document from ArcMap 9.3 to ArcInfo 10.0

The VBA code has work sucessfully in 9.x for a couple of year now.

Version 10.0 throws an excetion, "Inproper use of New " in the following statment;

Dim pPoint As IPoint

Set pPoint = new Point

although it excepted

Dim pPolyline As IPointCollection

Set pPolyline = New Polyline

in the earlier in the Sub

Any ideas please