Select to view content in your preferred language

ArcObject 9.3.1 VBA Compile Error: Automation Error

2188
2
12-14-2012 05:54 AM
KhaledAdbdullah
New Contributor
I have written a code in ArcObject 9.3.1 VBA. It works fine in my machine both Windows XP and 7 system. But another machine have just updated to Windows 7 and the MXD can not be oppened now. It shows 'Compile Error: Automation Error". And ends to the first line of the 'This Document'. Don't get a clue why? Here is the screenshot.

[ATTACH=CONFIG]19941[/ATTACH]
0 Kudos
2 Replies
T__WayneWhitley
Honored Contributor
This may sound too obvious, but since it fails at the very 1st line, are you sure the ArcObjects module is installed?...should see the ArcID module I think it is called in the Normal template in the project panel.

Another way is to see if you have the libraries installed is to open the Object Browser and look at the loaded classes....should have ones prefixed with 'esri'....or query directly for the object interface it failed on (coincidentally in the 1st line), IGeoProcessor.
0 Kudos
DuncanHornby
MVP Notable Contributor
You may need to check that the other machine has missing references? In vb editor go to menu > references and check for italic missing references and untick them.
0 Kudos