Create a Point Object in VBA

299
1
03-24-2011 07:08 AM
DavidLongcake_MBE
New Contributor
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
0 Kudos
1 Reply
ChristopherGraff
New Contributor III
Have you gotten any help on this issue?  I've now run into the same problem.  I haven't touched VBA in so many years I feel like I'm starting from scratch.
thanks so much,
-chris
0 Kudos