title: excel vba IE clicking a button
body: <p>Through Excel and VBA, i am opening a <a href="https://dhli.dhl.com/dhli-client/shipmentair?3&amp;shipmentId=151218573&amp;accountGroup" rel="nofollow">page.</a></p>
  
  <p>I want to click on the button 'Expand' through vba but I am getting an error. </p>
  
  <p>I tried using both VBA commands listed below</p>
  
  <pre><code>Doc.getElementsByClassName("dhl-btn-main collapse-btn-expand-all")(0).Click
  Doc.getElementsByClassName("dhl-btn-main collapse-btn-expand-all").Click
  </code></pre>
  
  <p>The error that I get is 
  Run time error '438': Object doesn't support this property or method.</p>