Community of VE/MapPoint Users and Developers
This is a discussion on ResultsQuality within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am a programmer wannabe who does not have a good grasp of code basics, so please bear with me. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| ResultsQuality From Excel, I am placing pins on the map with a balloon. Each Excel record may or may not include coordinates. Where coordinates are available, I use them, where they are not I use the address. Here is relevant parts of the code that I have compiled that locates the address: Dim oApp As MapPoint.Application <snip> 'Start MapPoint Set oApp = CreateObject("MapPoint.Application.NA.11") oApp.Visible = True Set objMap = oApp.NewMap Dim oMap As MapPoint.Map Dim oLoc As MapPoint.Location Set oMap = GetObject(, "MapPoint.Application").ActiveMap oMap.Application.Units = geoMiles oApp.WindowState = geoWindowStateMaximize oApp.PaneState = geoPaneNone 'Set location type If IsEmpty(ActiveCell.Range("P1")) = False Then GoTo FindCoordinates Else GoTo FindAddress <snip> FindAddress: On Error GoTo BadData Set oLoc = oMap.FindAddressResults( _ ActiveCell.Range("H1"), _ ActiveCell.Range("I1"), , _ ActiveCell.Range("J1"), _ ActiveCell.Range("K1"))(1) oLoc.Goto Set oPin = oMap.AddPushpin(oLoc, ActiveCell.Range("B1")) oPin.Highlight = True oPin.Symbol = 25 oPin.BalloonState = geoDisplayBalloon oApp.ActiveMap.Saved = True GoTo LastLine My code works great, but I want to be able to tell the user the user how good the address match was. With the current Dim oLoc As MapPoint.Location, I get an error message if I try to use oLoc.ResultsQuality If I use Dim oLoc as MapPoint.FindResults, then I get a type mismatch for the Set oLoc = oMap.FindAddressResults What Dim statement do I need to use? Or what other way is there to accomplish my goal? Thanks Larry |
![]() |
| Tags |
| resultsquality |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Ski Holidays Austria
Ski holidays in Austria offer ski schools for all types of skiers. They range from beginner classes of all ages to more advanced classes. Learn new techniques and refresh skills.
Italy Holidays
Find great Italy Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Italy.
Holiday to Thailand
Want to go somewhere new? Book a low cost holiday to Thailand at dealchecker.co.uk. See the stunning national parks and uninhabited islands.
Holidays to Jamaica
Holidays to Jamaica are about taking things easy. Forget your watch and chill out beneath the clear Jamaican sky.
Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.
Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.
Holidays to Lanzarote
Not been to the Canary Islands yet? What are you waiting for! Get information on holidays to Lanzarote at On The Beach.