Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<a href="#" onclick="show('11635356');">11635356</a>
上面的 HTML 代码将数字 11635356 显示为网页上的链接。我想点击这个链接。如何使用 Visual Basic for Excel 链接到此页面?
试试下面的代码。
Set ancElem = IE.document.getelementsbytagname("a") ancElem.Click
或者
Document.GetElementsByTagName("a").Item(0).FireEvent("click()")