dispatchEvent - VBA IE automation

前端 未结 1 1860
余生分开走
余生分开走 2021-01-26 15:09

I have a question I can\'t seem to figure out the answer to regarding how to dispatch an event in VBA.

On the website I am trying to navigate via VBA, there is a dynami

相关标签:
1条回答
  • 2021-01-26 15:41

    I figured out what needed to occur was a few mouse events had to fire to move forward.

    I ended up setting the cell in the table that I wanted to click and used fireEvent to fire all of the onmouse* events that had to happen.

         Set objLink = IE1.document.frames("mainParent").document.forms("AgentProfileList").document.getElementById("grdProfile_r_0").document.getElementById("grdProfile_rc_0_2")
     objLink.fireEvent ("onmouseover")
     objLink.fireEvent ("onmousedown")
     objLink.fireEvent ("onmouseup")
    
    0 讨论(0)
提交回复
热议问题