View Single Post

  #2 (permalink)  
Old 11-25-2002
John Meyer's Avatar
John Meyer John Meyer is offline
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Vincent, Give the a try, it will delete all pushpins on a map. Change MPC with whatever your MapPoint ActiveX control is named ie:(MapPointControl1)

Code:
Dim objDataSet As MapPointCtl.DataSet
Dim objmap As MapPointCtl.Map

Set objmap = MPC.ActiveMap
    For Each objDataSet In objmap.DataSets
        objDataSet.Delete
    Next
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Reply With Quote