View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tim Williams[_2_] Tim Williams[_2_] is offline
external usenet poster
 
Posts: 298
Default getElementsByTagname

Have you tried

Set doc_tables = ie.Document.getElementsByTagname("table")
Set tab_cells = doc_tables(7).getElementsByTagname("td")


Your line:
Set tab_cells = tab_rows.getElementsByTagname("td")

does not work because tab_rows is a collection of elements, not a single
element.

Set tab_cells = tab_rows(1).getElementsByTagname("td")

(eg) should work.

Tim


"senderj" wrote in message
...
I am writing a marco to put a html table into cells. I am able to

Where can I read more about this kind of coding? Is this called
ActiveX object DOM?