Excel VBA create an embedded WebBrowser and use it

前端 未结 2 1839
猫巷女王i
猫巷女王i 2021-01-02 23:27

Hi I\'m trying to dynamically create a web browser inside a spreadsheet and then use it but the WebBrowser functions don’t seem to work

Here is how I create the WebB

2条回答
  •  感情败类
    2021-01-03 00:17

    You need to pump Windows messages inside your WebBrowser.ReadyState <> READYSTATE_COMPLETE loop for this to work. Calling DoEvents/Sleep inside the loops does that, but has its own implications. Check these answers for further details and sample code:

    https://stackoverflow.com/a/19019200/1768303

    https://stackoverflow.com/a/19308865/1768303

提交回复
热议问题