I am a vb coder and have not done hardly any vba. I want to use a MapPoint 2009 module to open MapPoint on my own computer rather that connecting to the internet. The main reason is that the internet is not always accesible to me and I have MapPoint on my laptop.
The current module code is simple:
Function OpenMap(Address, City, State, Zip, Country)
Dim strAddress As String
strAddress = Nz(Address)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(City)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(State)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(Zip)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(Country)
If strAddress = "" Then
MsgBox "There is no address to map."
Else
Application.FollowHyperlink " & strAddress
End If
End Function
The function just builds an address string and passes it through the header. How do I open MapPoint locally and pass the address string?
Thanks.
The current module code is simple:
Function OpenMap(Address, City, State, Zip, Country)
Dim strAddress As String
strAddress = Nz(Address)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(City)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(State)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(Zip)
strAddress = strAddress & IIf(strAddress = "", "", ", ") & Nz(Country)
If strAddress = "" Then
MsgBox "There is no address to map."
Else
Application.FollowHyperlink " & strAddress
End If
End Function
The function just builds an address string and passes it through the header. How do I open MapPoint locally and pass the address string?
Thanks.