ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
On my userform i have TextBox3 which the user enters the customers Post Code.
On the same userform i have a commandbutton called OpenGoogleMaps.
What i am looking for is when the command button is pressed the code looks at the entry in TextBox3 & opens that Post Code in Google Maps.
The is the current code that is on the button for opening Google Maps but not sure how to proceed.
So basically look in TextBox2 value = BS9 2HH
Now open BS9 2HH in Google Maps.
On the same userform i have a commandbutton called OpenGoogleMaps.
What i am looking for is when the command button is pressed the code looks at the entry in TextBox3 & opens that Post Code in Google Maps.
The is the current code that is on the button for opening Google Maps but not sure how to proceed.
VBA Code:
Private Sub OpenGoogleMaps_Click()
ActiveWorkbook.FollowHyperlink Address:="https://www.google.co.uk/maps", NewWindow:=True
End Sub
So basically look in TextBox2 value = BS9 2HH
Now open BS9 2HH in Google Maps.