Hi all,
I have a task to download a table from this web page (http://sdinotice.hkex.com.hk/di/NSAl...=MAIN&lang=EN&). I know the html code for the table should be something like
(<table cellspacing="0" cellpadding="0" align="Center" rules="all" border="1" id="grdPaging" style="width:970px;border-collapse:collapse;">
<tr class="boldtxtw" valign="top" style="background-color:#999999;">
<td>Name of substantial shareholder / director / chief executive</td><td>Reason for disclosure </td><td>No. of shares bought / sold / involved</td><td>Average price per share</td><td>No. of shares interested (See *Notes above)</td><td>% of issued share capital</td><td>Date of relevant event (dd/mm/yyyy)</td><td>Interests in shares of associated corporation</td><td>Interests in debentures</td>)
As there are several "table" in the whole html code, I would like to use getelementsbytagname("table") first and then look for id by searching getelementbyid("grdPaging") to download the table only. But I don't know how to write this command in vba code. Could anyone shows me a direction please? Thanks in advance.
Bookmarks