Armaghan12
New Member
- Joined
- Jul 17, 2018
- Messages
- 3
Hi,
I am newbie please help I need to extract addresses by entering lat and long on below mention website and need to extract data on text box on which it appears.
but it is giving error of object variable or with block variable not set
Please also tell me how get data from text box thanks
I am newbie please help I need to extract addresses by entering lat and long on below mention website and need to extract data on text box on which it appears.
but it is giving error of object variable or with block variable not set
Please also tell me how get data from text box thanks
Code:
Public Sub newMin()
Dim ie As Object
Dim form As Variant, button As Variant
Dim aLat As String
Dim aLong As String
Set ie = CreateObject("internetexplorer.application")
aLat = "24.323"
aLong = Range("B2")
ie.Visible = True
ie.navigate ("https://www.latlong.net/Show-Latitude-Longitude.html")
While ie.readystate <> 4
DoEvents
Wend
ie.document.getelementsbyname("hU4543").Item.innertext = aLat