MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




importing excel file into mappoint

This is a discussion on importing excel file into mappoint within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I would like to import datas from excel into mappoint. I wrote this programm but there's an error 424. Can ...


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

Today's Posts Twitter Feed 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 02-17-2003
Junior Member
White Belt
 
Join Date: Feb 2003
Posts: 10
importing excel file into mappoint

I would like to import datas from excel into mappoint. I wrote this programm but there's an error 424. Can you help me????


Private Sub Form_Load()

load_mappoint
OpenDataSet

End Sub

Private Sub load_mappoint()

Dim MPApp As MapPoint.Application
Set MPApp = New MapPoint.Application
MPApp.Visible = True
MPApp.UserControl = True

End Sub

Private Sub OpenDataSet()

Dim objDataSets As MapPoint.DataSets
Dim objDataSet As MapPoint.DataSet
Dim zDataSource As String

zDataSource = "C:\Classeur1.xls!Sheet1!A1:B2"
Set objDataSets = objApp.ActiveMap.DataSets 'error 424, here!!!
Set objDataSet = objDataSets.ImportData(zDataSource)

End Sub
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 04-14-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
importing excel file into mappoint

Change:
Set objDataSets = objApp.ActiveMap.DataSets 'error 424, here!!!

To:
Set objDataSets = MPApp.ActiveMap.DataSets 'error 424, here!!!

Looks like a copy/paste bug.
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 04-14-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Oh! And move the declaratoin of MPApp out of the function. It needs to be global.
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, file, importing, mappoint


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
Importing Zip Codes from Excel to MapPoint Jennl881 MapPoint 2006/2009 Discussion 2 02-05-2006 05:03 AM
Importing multiple maps into Excel dadburne MapPoint 2006/2009 Discussion 5 10-19-2005 12:07 PM
Error on importing shape file Anonymous MapPoint 2006/2009 Discussion 1 06-26-2003 10:26 AM
importing data from excel to mappoint Layne MapPoint 2006/2009 Discussion 0 05-09-2003 12:40 PM
When importing from MS Excel .csv files into MapPo.... Anonymous MapPoint 2006/2009 Discussion 1 08-08-2001 07:35 AM


All times are GMT -5. The time now is 01:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...



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 56 57 58 59