MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint 2002 euro VBA

This is a discussion on Mappoint 2002 euro VBA within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; hey all, I hope you can help me. I am trying to make an automated program using excels VBA and ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2003
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 8
Mappoint 2002 euro VBA

hey all,

I hope you can help me.

I am trying to make an automated program using excels VBA and the mappoint linkage.

What the idea is, that it will ask for a Uk postcode - once given it will go onto mappoint and bring back into a spreadsheet, how close each of 118 other postcodes are.

This shouldnt be too difficult in my mind - i have a list of all the postcodes in excel and i should be able to get it to lookup off the excel spreadsheet.

But currently i have tried to just program it with 2 places, yet i still cant get it to return a value.

I would post the code, but its so confusing with all the things i have tried i am actually going to start again because i dont know where i am.

Any help much appreciated.

Regards

Dan
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 10-06-2003
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 8
code i have now done

some of the code i have now done is

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 06/10/2003 by Daniel Fountain
'
Dim MPApp As New MapPoint.Application
Set MPApp = New MapPoint.Application
MPApp.Visible = True
MPApp.UserControl = True
Dim objMap As MapPoint.Map
Dim objLoc1 As MapPoint.Location
Dim objLoc2 As MapPoint.Location
Dim objCenter As MapPoint.Location

objLoc1 = objMap.FindAddressResults(, , , , IP21ET)


'
End Sub

yet i keep getting an error saying object or block not defined (and i tried the pcode with a space and with speach marks)

any ideas?
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 10-07-2003
Member
Yellow Belt
 
Join Date: Sep 2003
Posts: 44
DOn't know about in Excel, but in VB, you use a Mappointcontrol object, open it to the location you want then make it active before you can use it



Dim objmap As MapPoint.Map
Dim objLoc As MapPoint.Location
Dim NA As New MapPoint.GeoMapRegion()
Dim objpushpin As MapPoint.Pushpin

AxMappointControl1.NewMap(NA.geoMapEurope)
objmap = AxMappointControl1.ActiveMap

objLoc = objmap.GetLocation(53.585083333333, -2.70344, 25)
objpushpin = objmap.AddPushpin(objLoc, "1")
objpushpin.BalloonState = MapPoint.GeoBalloonState.geoDisplayName

Thats how I start my plotting program in vb.net anyways

Hope this helps

M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-07-2003
Junior Member
White Belt
 
Join Date: Oct 2003
Posts: 8
still having probs

Still having the same/similar probs.

Any ideas?
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
euro, mappoint 2002, vba


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
Has anyone got street address with MapPoint Euro 2004? Anonymous MapPoint 2006/2009 Discussion 8 02-09-2005 09:13 AM
Is MapPoint 2004 Euro version available yet? Anonymous MapPoint 2006/2009 Discussion 2 09-19-2003 10:30 AM
MapPoint 2002 Anonymous MapPoint 2006/2009 Discussion 2 10-29-2002 12:25 PM
MapPoint 2002 Anonymous MapPoint 2006/2009 Discussion 1 08-16-2002 08:43 AM
Hello. I am using MapPoint 2002. I am doing a lot .... Anonymous MapPoint 2006/2009 Discussion 1 06-24-2002 02:04 PM


All times are GMT -5. The time now is 02:58 PM.


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