With ie.Document For Each a In .getElementsByTagName("a") If a.onclick = "goSCM()" Then a.Click End If Next End With