Community of VE/MapPoint Users and Developers
This is a discussion on Pushpin State within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, How do I loop through pushpins objects to hide any pushpin who’s ballonstate is set show to MapPoint.GeoBalloonState.geoDisplayNone . ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Re: Pushpin State
Hey Joe, Here's some Excel VBA to do this Sub HidePins() ' Attach to already-running instance of MapPoint Set objMpApp = GetObject(, "MapPoint.Application") Set ObjMap = objMpApp.ActiveMap 'set this to the name of your pushpins Set objDataset = ObjMap.DataSets("My Pushpins") Set objRecordset = objDataset.QueryAllRecords 'hide screen while updating, it's much faster that way objMpApp.Visible = False With objRecordset 'move to the first pushpin and then loop through them all .MoveFirst Do Until .EOF With .Pushpin '.BalloonState = geoDisplayBalloon '.BalloonState = geoDisplayName .BalloonState = geoDisplayNone End With .MoveNext Loop End With 'show the map now objMpApp.Visible = True end sub |
![]() |
| Tags |
| pushpin, state |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 11-07-2007 11:12 AM | |
| Apple Blog » Blog Archive » Pushpin State | This thread | Pingback | 11-05-2007 05:57 PM | |
| Create 3D Map Video - Win a Free Zune from Microsoft - MapPoint News - MP2K Magazine | This thread | Refback | 11-05-2007 07:48 AM | |
| Merging Multiple Routes - MapPoint Articles - MP2K Magazine | This thread | Refback | 11-04-2007 05:16 PM | |
| Determing Whether A Point Is Located Inside Polygon - MapPoint Articles - MP2K Magazine | This thread | Refback | 11-02-2007 08:42 AM | |
| Programming MapPoint via .NET - MapPoint Articles - MP2K Magazine | This thread | Refback | 11-02-2007 08:37 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Open map in pan state | mtcook01 | MapPoint 2006/2009 Discussion | 2 | 05-13-2007 03:04 AM |
| country or state? | Rick | MapPoint Web Service and Virtual Earth | 0 | 04-21-2006 03:59 PM |
| Turning on all pushpin Balloon sTate | Anonymous | Products: Pushpin Tool, Single State Mapper | 1 | 02-18-2004 12:24 PM |
| State Sums | Anonymous | MapPoint 2006/2009 Discussion | 3 | 08-08-2002 10:19 PM |
| I need to a map showing only my state with the nam.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-04-2002 02:09 PM |