Og dette hiver alle anchor-tags:
Dim ie, data, objFSO, objTextFile, item, count
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
count = 0
Set ie = WScript.CreateObject("InternetExplorer.Application")
ie.Navigate "
http://www.eksperten.dk/spm/970346#reply_7990562"ie.visible = false
while ie.readystate <> 4
wscript.sleep 100
WEnd
Set data = ie.Document.getElementsByTagName("a")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\data.csv", True)
objTextFile.WriteLine "id;" & "link;"
For Each item In data
count = count + 1
objTextFile.Writeline (count & ";" & item & ";")
Next
objTextFile.Close
ie.Quit