Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.
 I have a code with toolbars which I tried to run it in another PC but it failed. I get a run time error "Method Addtoolbox of object I GDispatch failed". The line that the code stacks is the last one shown below. Could you help me please? I work with ArcGIS 9.3 in VBA. Thanks

 Dim GP As Object
 Set GP = CreateObject("esriGeoprocessing.GpDispatch.1")

'''''  'Set the toolbox
GP.AddToolbox "C:/Program Files /ArcGIS/ArcToolbox/Toolboxes/Conversion Tools.tbx"
share|improve this question
    
Are both systems running a 32 bit version of windows? 64 bit platforms will require C:/Program Files (x86) /ArcGIS/ArcToolbox/Toolboxes/Conversion Tools.tbx instead –  Peter Smith Apr 9 '12 at 7:37
    
The one machine runs 64 bit windows while the other 32 bit version hence I removed the (x86). –  Demetris Apr 9 '12 at 16:22
    
From what I see here, trying removing the space at the end of Files in Program Files. –  Peter Smith Apr 10 '12 at 1:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.