MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Run-time error 2147467259 80004005 automation error

This is a discussion on Run-time error 2147467259 80004005 automation error within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using a variant of the calcpos application. When I open excel with the VBA code and run the ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-26-2007
Crime Analyst
White Belt
 
Join Date: Feb 2007
Posts: 3
Angry Run-time error 2147467259 80004005 automation error

I am using a variant of the calcpos application. When I open excel with the VBA code and run the program, I get the lat and long for a specific address. However when I run it again. I get a run-time error 2147467259 80004005 - automation error message. Oddly enough, if I select the code in VBA and copy and paste it back. I can run the program again and it works. It seems that the copy and paste is clearing out the buffer and replacing it with whatever I copy and that causes the program to work again - but only once. Any ideas on how to fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Run-time error 2147467259 80004005 automation error

Hi,

I don't know VBA, but I assume you have a debugger. Can you step trough the code to see the offending line ? And can you also see the value assigned to objects and variables ?

I assume something is destroyed and not created again. Or something is not cleared where the values are not right the second time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2007
Crime Analyst
White Belt
 
Join Date: Feb 2007
Posts: 3
Thumbs up Re: Run-time error 2147467259 80004005 automation error

Quote:
Originally Posted by Wilfried View Post
Hi,

I don't know VBA, but I assume you have a debugger. Can you step trough the code to see the offending line ? And can you also see the value assigned to objects and variables ?

I assume something is destroyed and not created again. Or something is not cleared where the values are not right the second time.

Thank You Wilfried for replying. I just fixed the problem by adding the following lines at the bottom of the function's code:

Set locNorthPole = Nothing
Set locSantaCruz = Nothing

I had tried this earlier but had not set the right variables to nothing after each iteration.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
automation, error, runtime


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/run-time-error-2147467259-80004005-automation-error-5703.html

Posted By For Type Date
80004005 errore ocx | VIRGILIO Ricerca | Web This thread Refback 3 Weeks Ago 08:41 AM
Working With Excel and MapPoint - MP2K Magazine This thread Refback 03-05-2007 08:07 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Run time Error 16400 bdg MapPoint 2006/2009 Discussion 4 02-15-2007 11:19 AM
run-time error 16391 with MP control in vb6 cwrude MapPoint 2006/2009 Discussion 2 08-28-2006 01:14 PM
Run-time Error 16398 using Mappoint 2004 ocx blueisland MapPoint 2006/2009 Discussion 0 12-13-2004 01:59 AM
Run-time error 'Method 'UpdateLink' object 'DataSet' failed Anonymous MapPoint 2006/2009 Discussion 0 09-18-2003 04:53 PM
Error in VBA automation of MapPoint when PO BOX is found JPeters MapPoint 2006/2009 Discussion 2 01-09-2003 10:40 AM


All times are GMT -5. The time now is 12:28 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55