title: Clicking link within a HTML List
body: <p>I'm trying use Excel's IE automation tools to click a website link within a users profile of this site. Using the following in VBA:</p>
  
  <pre><code>ie.Document.getElementsByClassName("website")(0).getElementsByTagName("a")(0).Click
  </code></pre>
  
  <p>But keep getting the Runtime error '438' when ran. Any advice on how to fix this or if clicking this link is even possible please? Thanks.</p>
  
  <p><strong>EDIT (Full Code):</strong></p>
  
  <pre><code>Dim ie As InternetExplorer
  Dim html As HTMLDocument
  Set ie = New InternetExplorer
  ie.Visible = True
  ie.Navigate "site"
  
  Do While ie.READYSTATE &lt;&gt; READYSTATE_COMPLETE
  DoEvents
  Loop
  
  Set objA = ie.Document.getElementsByClassName("website")(0) 'GETTIN ERROR HERE
  objA.getElementsByTagName("a")(0).Click
  End Sub
  </code></pre>