how to get the next td elements from the same tr in HTML, vba -


i new in vba. wants yours opinion in how value next td elements using condition. lets say, if elements previous td true take next td link download file.

in html, on 1 tr , 3 td this:

table 1. inventories | link download.xls | link download.zip


this coding:

dim tr mshtml.ihtmlelementcollection, dim td mshtml.ihtmlelementcollection  dim tdobj mshtml.htmlgenericelement dim trobj mshtml.htmlgenericelement   set tr = htmldoc.getelementsbytagname("tr") each trobj in tr     set td = trobj.getelementsbytagname("td")     each tdobj in td         if (trim(tdobj.innertext) "table 1. inventories*")             "take link download .xls here"         end if     next next 

it possible get? table inventories stuck on how "link download.xls". if there suggestion, please let me know guys..

as santosh said in comments:

use nextsibling property obtain next item in list.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -