我正在嘗試使用VBA捕獲網絡數據。Vba使用HTML元素創建集合
我有這樣的HTML行:
<div class="table-wrapper">
<table class="mega-table">
<thead>
<tr>…</tr>
</thead>
<tbody>
<tr>…</tr>
<tr>…</tr>
<tr>…</tr>
<tr>…</tr>
</tbody>
</table>
</div>
如何創建一個集合 「TBODY」? (後來我想遍歷它包含的所有元素(所有「tr」))。
我一直在試圖與.getElementsBy ...但這裏所說:http://stackoverflow.com/questions/15191847/use-getelementbyid-on-htmlelement-instead-of-htmldocument |在vba中我們不能寫:Document.getElementById(「target」)。getElementsByTagName(「tr」)。 – ProtoVB