Hi Everyone,
I am trying to look for a specific word in mappoint direction such as " Check Timetable" in direction pane in mappoint when I use the following code, after the word found then want to insert it in a cell. Anybody knows how?
Dim oApp As MapPoint.Application
Set oApp = CreateObject("MapPoint.Application.NA.17")
oApp.Visible = True
oApp.UserControl = True
Set objMap = oApp.NewMap
Set ObjRoute = objMap.ActiveRoute
On Error Resume Next
szZip1 = Worksheets("Mvan").Cells(5, 2)
szZip2 = Worksheets("Mvan").Cells(6, 2)
'Add route stops and calculate the route
ObjRoute.Waypoints.Add objMap.FindResults(szZip1).Item(1)
ObjRoute.Waypoints.Add objMap.FindResults(szZip2).Item(1)
ObjRoute.Calculate
End Sub