MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Macro to Export to Mappoint (from Excel)

This is a discussion on Macro to Export to Mappoint (from Excel) within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi All, I've created a routine that drags live sales order info from our as400 server into an Excel spreadsheet. ...


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 (6) Thread Tools Display Modes
  6 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-02-2007
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 3
Macro to Export to Mappoint (from Excel)

Hi All,

I've created a routine that drags live sales order info from our as400 server into an Excel spreadsheet.

I then have to select the Data > Export to Mappoint option when Excel loads.

I'd like to write a macro to automatically 'Export to Mappoint' when i open the spreadsheet.

Can anybody help? I'm more than happy to do the programming myself as i have a slight knowledge of VB but i just cant find enough references to get me going.

Thanks

Mark
???
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 08-02-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
Re: Macro to Export to Mappoint (from Excel)

Take a look at these examples -- Working With Excel and MapPoint - MP2K Magazine see if this is enough to get you started. Let us know!
Eric
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 08-03-2007
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 3
Re: Macro to Export to Mappoint (from Excel)

Thanks for the help eric, definitely on the right track now. Only problem is i'm having trouble getting the example code to work.

Set oApp = CreateObject("MapPoint.Application.NA.11")
oApp.Visible = True

I'm using version 13 so i tried substituting the "NA.11" part with NA.13... i got i slightly different error but this appeared to help...

the problem is, i'm using the Europe version not the American version and i'm guessing the "NA." is a reference to North America or something like that.

I've tried substituting the NA. for E. and EU. but no joy, any ideas?

Thanks again.
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 08-03-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,470
Blog Entries: 1
Re: Macro to Export to Mappoint (from Excel)

Actually just try this

Code:
 
Set oApp = CreateObject("MapPoint.Application")
That should just load up whatever version or flavor of MapPoint is installed on your machine. Where the .NA and the version number (e.g. .11) can help is when you have different MapPoint's installed and you want to specify which one to load. Good question!

Eric
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
excel, export, macro, mappoint


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/macro-export-mappoint-excel-6129.html

Posted By For Type Date
MapPoint User Community - MP2K Magazine This thread Refback 08-09-2007 03:42 AM
A More Compact Method for Obtaining Lat/Long - MapPoint Articles - MP2K Magazine This thread Refback 08-06-2007 03:56 AM
MapPoint Articles - MP2K Magazine This thread Refback 08-04-2007 02:03 PM
Various errors e.g. Object expected - vBulletin Community Forum This thread Refback 08-03-2007 04:48 PM
Various errors e.g. Object expected - vBulletin Community Forum This thread Refback 08-03-2007 03:25 PM
Programming with MapPoint 2004 using the .NET Framework - MapPoint Articles - MP2K Magazine This thread Refback 08-02-2007 02:56 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
Excel macro based on Highlighted Mappoint pushpins RHill MapPoint 2006/2009 Discussion 2 10-11-2006 09:18 AM
setting up macro in excel to extract lat/long from map point TransportationNut05 MapPoint 2006/2009 Discussion 2 08-24-2005 11:45 AM
Locate City and zip code using lat and long (Excel Macro) sberhe Wish List 0 04-01-2005 10:31 AM
Using a macro to get a map into excel jimbob MapPoint 2006/2009 Discussion 2 03-29-2004 06:21 AM
updatelink using macro in Excel XP amyles MapPoint 2006/2009 Discussion 0 07-17-2003 02:26 AM


All times are GMT -5. The time now is 03:11 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