I’m doing some webpage parsing in VBA within Excel; I’m MSHTML to download and parse the webpage. However, on certain sites, a dialog box pops up. It works fine; however, I would like to know if there is a way to disable this or possibly get around it. Thank-you for your time. My code snippet for the document creation should be below the image.

Dim objMSHTML As New MSHTML.HTMLDocument
Dim objDocument As MSHTML.HTMLDocument
Set objDocument = objMSHTML.createDocumentFromUrl(url, "")
I really recommend against using MSHTML for retrieving your data from the web. You will regret it later. The reason for this is because MSHTML uses Internet Exploder in the background so you will get problems like the one you have. Another reason is because since it is using IE, it will also deal with the IE cache and you will run into problems like “I can’t get updated in from the server because it’s cached” or cache full errors. It may seem like that sounds rare and “it won’t happen to me,” you will find your life is changed into a living nightmare down the road LOL. Just my personal experience.
I recommend instead to use WinHTTP or WinInet. Just google “Winhttp vba” and you will be set.