View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Atishoo Atishoo is offline
external usenet poster
 
Posts: 267
Default referencing web site object

Hi have been using a dump routine posted by Joel to ascertain the reference
for objects in several web pages including three for mileage calculation.
Am unable to return the mileage by road output from the following web page,

URL = "http://www.freemaptools.com/distance-between-uk-postcodes.htm"

am sure the reference is :

Set dis = IE.document.getElementsByTagname("INPUT")
Set distance = dis.Item(7)
Worksheets("sheet1").Range("a1") = distance.innertext

but get no value returned from this! Should I be using a different suffix
other than "innertext"?