Select to view content in your preferred language

Running ArcGIS 9.x VBA into ArcGIS 10 - Strange errors!

780
1
10-12-2010 04:37 AM
SanjayRana
Emerging Contributor
Hi Everyone,

Has anyone come across any information that states whether mxd with macro written in ArcGIS 9.x are or are not compatible with ArcGIS 10.

I have a very curious situation. Macros in a mxd written in ArcGIS 9.x work perfectly fine in all ArcGIS 9.x installation but throw strange errors in ArcGIS 10.

Errors are as follows:

- Dialog Box control references are not automatically loaded in some forms so one gets a Microsoft Forms Error. This is easy to fix by loading the dialog box control manually.

- A function in a module that creates some temporary shapefiles crashes after it has managed to perform all the tasks. It doesn't seem to be able to return to the calling sub. Sometimes, it manages to run successfully once on a machine but then fails to run thereafter. The VBA error is "Object Invoked Disconnected From Client" and it provides a choice to end/debug but either choice crashes ArcMap completely.

Many thanks,
Sanjay.
0 Kudos
1 Reply
JonHall
Frequent Contributor
Sanjay-
Have you obtained the ArcGIS 10.0 VBA license, and then you get these errors? 

I have been so discouraged about the future of VBA in ArcMap, and ESRI's recommendations to convert 9.x VBA macros to 10.0 Add-Ins using VS-Express, that I have not even tried licensing VBA for ArcGIS Desktop 10.0
0 Kudos