Tegenfeldt
New Member
- Joined
- Aug 6, 2013
- Messages
- 13
I am trying to loop thru all links on all pages of a website to find pages that have links to PDF files. Do you have a code sample for that? If not I think I can figure out that myself.
Now to my real problem;
Some links are in a cell in a table on the webpage, like this:
I want my VBA to click that link, but I can’t find a way to do this.
What I have so far is:
When I examine TD it is empty;
But I can find the link in:
How can I get my VBA to click that link?
Now to my real problem;
Some links are in a cell in a table on the webpage, like this:
Code:
<td valign="bottom" style="height:170px;"><DIV class="InnerDiv"><A class="CatalogLink" href="javascript:firstNodeClick('0:0:0')">Golvbrunnar - plast</A></DIV></td>
I want my VBA to click that link, but I can’t find a way to do this.
What I have so far is:
Code:
Set Browser = New InternetExplorer
Browser.navigate "http://core.purus.se/PurusWeb/common/frameset.aspx?Profile=Sweden&NamedPath=Golvbrunnar"
Set Document = Browser.Document
Set td = Document.getElementsByTagName("a")
When I examine TD it is empty;
![url]](/board/proxy.php?image=http%3A%2F%2F%5Burl%5Dhttp%3A%2F%2Fkisystem.se%2Fpurus1.gif%5B%2Furl%5D&hash=ab45ef2e86f6587951ae6e16343f506a)
But I can find the link in:
![url]](/board/proxy.php?image=http%3A%2F%2F%5Burl%5Dhttp%3A%2F%2Fkisystem.se%2Fpurus5.gif%5B%2Furl%5D&hash=4163c3661716bdb545689c3af69aef0c)
![url]](/board/proxy.php?image=http%3A%2F%2F%5Burl%5Dhttp%3A%2F%2Fkisystem.se%2Fpurus2.gif%5B%2Furl%5D&hash=52fecc75177858b9ff193eb5557fe79b)
![url]](/board/proxy.php?image=http%3A%2F%2F%5Burl%5Dhttp%3A%2F%2Fkisystem.se%2Fpurus6.gif%5B%2Furl%5D&hash=3376ea974bfc4b442d866b5e73af9a2d)
![url]](/board/proxy.php?image=http%3A%2F%2F%5Burl%5Dhttp%3A%2F%2Fkisystem.se%2Fpurus3.gif%5B%2Furl%5D&hash=5c3367def1e92ea970fd8542ac42f68c)
![url]](/board/proxy.php?image=http%3A%2F%2F%5Burl%5Dhttp%3A%2F%2Fkisystem.se%2Fpurus4.gif%5B%2Furl%5D&hash=8f703637e72001624cddc431023c3b08)
How can I get my VBA to click that link?