MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Automate Multiple Maps

This is a discussion on Automate Multiple Maps within the MapPoint 2006 Discussion forums, part of the Map Forums category; I imported a list of customers from excel and I would like to automate an individual map for each customer ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006 Discussion

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

Notices


Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-18-2008
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 4
Question Automate Multiple Maps

I imported a list of customers from excel and I would like to automate an individual map for each customer showing directions to our store. I know how to get directions manually, but I am working with several customers, so doing this manually would take a long time. Any help would be appreciated.
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 03-19-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 1,955
Re: Automate Multiple Maps

Hi,

You can automate this if you do some custom programming. Do you have programming skills?
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 03-19-2008
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 4
Re: Automate Multiple Maps

I have some programming skills, but it has been a few years since i have actually programmed. I am currently trying to refresh my mind with VisualBasic. Is there any code that is already written that I can use?
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 03-19-2008
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,171
Blog Entries: 1
Re: Automate Multiple Maps

There are some examples to get started at

Working With Excel and MapPoint - MP2K Magazine

I find it easy to code up ad hoc stuff in Excel VBA, that's probably my favorite "development platform" for MapPoint, for general work anyway..

Eric
__________________
Order MapPoint 2006 | Read Programming MapPoint in .NET | Start Using the Pushpin Tool - Free Trial Download - click here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 2 Weeks Ago
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 4
Re: Automate Multiple Maps

I am trying to get the distance for each customer to a master location. Some address are returning the correct # of miles, and some address are returning a time (12:00 AM). This is the code I am using:

Dim dDistance As Double

dDistance = Math.Round(oRoute.Distance, 1)

How can I get the correct number of miles for the addresses that are returning 12:00 AM?

p.s. I am programming in VBA using MapPoint 2006
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 2 Weeks Ago
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 1,955
Re: Automate Multiple Maps

Hi,

The Distance property of a Route object will return always the distance or 0 is it is not (or can not) calculated. But wy do you think that the value it return is a 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
  #7 (permalink)  
Old 2 Weeks Ago
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 4
Question Re: Automate Multiple Maps

I was hoping you could tell me why it could be returning a time instead of the number of miles. i'm stumped
here is a screen shot of some code and the values i am getting.

[IMG]file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG]
Attached Images
File Type: jpg Untitled-1.jpg (116.8 KB, 3 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 2 Weeks Ago
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 1,955
Re: Automate Multiple Maps

Hi,

Ok now I see what you mean. 1 thing we should be very clear. The Distance value is a floating point value representing the distance in miles or kilometers. It is not a time value.

However a time value is also just a floating point value. Thus for some weird reason it is displayed as a time value in your Excel.

Your code looks ok but I don't know anything of Excel. If someone can jump in here? There must be a way to tell Excel it is not a time value but just a floating point number to display.
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/automate-multiple-maps-7320.html

Posted By For Type Date
Automate Multiple Maps - MapPoint Forums This thread Refback 04-01-2008 04:53 PM
A More Compact Method for Obtaining Lat/Long - MapPoint Articles - MP2K Magazine This thread Refback 03-19-2008 02:23 AM

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
Multiple maps? VC_Man MapPoint 2006 Discussion 1 03-16-2007 12:02 PM
Manipulating multiple maps in Excel briwagner MapPoint 2006 Discussion 3 09-26-2006 01:33 PM
automate stop duration and multiple routes samlinc MapPoint 2006 Discussion 1 01-22-2006 10:44 AM
Importing multiple maps into Excel dadburne MapPoint 2006 Discussion 5 10-19-2005 12:07 PM
Error with Multiple Symbol Maps Anonymous MapPoint 2006 Discussion 1 01-13-2005 03:31 PM


All times are GMT -5. The time now is 06:26 PM.


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

Flight Departures
Check Holiday Hypermarket to find flight departures to numerous exotic destinations. We link to details on flight departures and arrivals to help you find information fast.

City Break Holidays
Book city break holidays through Travel Counsellors. A personal travel advisor will help with your city break holiday plans.

Holidays Thailand
Holidays in Thailand are hugely diverse with wonderful luxury resorts and beaches but also some lovely forested mountains with interesting hill tribes. See dealchecker.co.uk.

Cancun Holidays
Cancun holidays offer beautiful scenery, calm waters and plenty of shopping. Get a taste of the good life while on holiday in Cancun.

Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.

Cheap Travel
For cheap travel options, visit Travel.co.uk and explore the benefits of our comparison site.

Lanzarote Holidays
Visit the easternmost island of the archipelago! Book Lanzarote holidays at On The Beach!


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