MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




xlmicrosoft Mappoint

This is a discussion on xlmicrosoft Mappoint within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; So I'm calling Mappoint from within a VBA subroutine... Dim SysApp As New MapPoint.Application Dim SysMap As MapPoint.Map Dim SysRoute ...


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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-14-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 16
xlmicrosoft Mappoint

So I'm calling Mappoint from within a VBA subroutine...

Dim SysApp As New MapPoint.Application
Dim SysMap As MapPoint.Map
Dim SysRoute As MapPoint.Route
Dim SysLoc1 As MapPoint.Location
Dim SysLoc2 As MapPoint.Location

Application.ActivateMicrosoftApp xlMicrosoftMappoint

and the calculator pops up instead...

I've opened Mappoint before from within an excel function, but this is silly...
My references are up mappoint 13.0 object library, mappoint utilities 1.0 type library, but am getting a "conflict message" when referencing mappoint control 13.0...

thanks for any input,
andriy

Last edited by andriy; 01-14-2008 at 01:31 PM.
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 01-15-2008
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 122
Re: xlmicrosoft Mappoint

xlMicrosoftMappoint isn't a defined constant, so VBA doesn't really know what it's activating.

You probably want to simply activate the MapPoint application you already created in your variable "SysApp", by using the following:

Code:
SysApp.Visible=true
SysApp.UserControl=true
SysApp.Activate()
HTH
-Paul
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 01-15-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 16
Re: xlmicrosoft Mappoint

Thanks.
I didn't realize Mappoint was already created once I declared it (and allocated memory).

Thanks for your patience with my growing skillset.
Andriy
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
microsoft mappoint


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/xlmicrosoft-mappoint-6999.html

Posted By For Type Date
About MP2Kmag - MP2K Magazine This thread Refback 01-16-2008 05:13 AM
Author - MP2K Magazine This thread Refback 01-16-2008 05:13 AM
The Magazine for MapPoint - MP2K Magazine This thread Refback 01-15-2008 07:05 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


All times are GMT -5. The time now is 11:08 AM.


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