Save method
Saves the specified map or template, all Web pages in a SavedWebPages collection, or resaves the saved view of a SaveWebPage object. Not available for embedded maps or for use with the MapPoint Control.
Applies to
Collections: SavedWebPages
Objects: Map, SavedWebPage
Syntax
object.Save
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a collection or object in the Applies to list. |
Remarks
To save a map in the MapPoint Control, use the SaveMap method on the MappointControl object.
Example
Sub ResaveMap()
Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objRoute As MapPoint.Route
Dim objLoc As MapPoint.Location
'Set up the application
Set objMap = objApp.ActiveMap
Set objRoute = objMap.ActiveRoute
objApp.Visible = True
objApp.UserControl = True
'Create a route
objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
objRoute.Calculate
'Save the map, change it, then resave
objMap.SaveAs ("Saved File.ptm")
objRoute.Waypoints.Item(1).Delete
objMap.Save
End Sub
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.