Well I have figured out how to get the waypoints into MapPoint 2006, now how do I get the optimized result? :/
I have tried the For Each...Next loop with both the Waypoints collection and the Directions collection. I haven't been able get the result I need. I'm looking for a list of the optimized route with the elapsed time and the elapsed distance next to each waypoint.
code segment:
For Each D In .Directions
idx = D.Index
ActiveCell.Offset(1, 0).Activate
If D.Type = 9 Then
objRoute.Directions.item(idx).Waypoint.Name
End If
Next
When shorthand notation didn't work I also tried it with the full reference. Neither one have worked. So obviously I'm missing something.
I keep getting "Object dosen't support this item or method" error.
Does anybody have any suggestions.
TIA
Mike




LinkBack URL
About LinkBacks






Reply With Quote

