VBA Internet Explorer wait for web page to load

后端 未结 3 550
星月不相逢
星月不相逢 2020-12-03 18:38

I know questions like this have been asked before, but mine is a bit different and has been fairly troubling. What I\'m dealing with is a web page with a form with a few ev

3条回答
  •  无人及你
    2020-12-03 19:33

    I had the same problem with My Webpage.. What is did is...

    the fist option is

    While Ie.**document**.readystate="complete"
    DoEvents
    Wend
    

    there were few boxes in which options were loaded after a button click/even fire in another box...I jsst placed code like this..

    Do Until IE.document.getelementbyid("Next box").Lenght>0
    DoEvents
    Loop
    Application.wait Now+Timevalue("00:00:02)
    

提交回复
热议问题