Hi guys,
I have made a program that will put addresses into the website Distance between two addresses, cities or zipcodes
But I don't know how to get excel to Click on the "calculate distance" button. I've looked on a bunch of youtube videos (which is why I'm able to put values into the 'from' and 'to' boxes. But am still unable to get it to click the button for me). It should be the last lane of code that needs to be changed to something else.
The code above puts the addresses into the website
the code below is my attempt to click on the "calculate distance button"
Any advice would be awesome.
Thanks,
ExcelJWS
I have made a program that will put addresses into the website Distance between two addresses, cities or zipcodes
But I don't know how to get excel to Click on the "calculate distance" button. I've looked on a bunch of youtube videos (which is why I'm able to put values into the 'from' and 'to' boxes. But am still unable to get it to click the button for me). It should be the last lane of code that needs to be changed to something else.
Code:
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "http://www.mapdevelopers.com/distance_from_to.php"
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
IE.document.all("from").Value = Addy1.Value
IE.document.all("to").Value = Addy2.Value
the code below is my attempt to click on the "calculate distance button"
Code:
IE.document.all("link_button").Click
Any advice would be awesome.
Thanks,
ExcelJWS