Forcing documentMode when using MSHTML.HTMLDocument
问题 Can HTMLDocument be forced to a specific documentMode when using MSHTML in Excel? So far, all properties and methods related to this seem to only return values and cannot be set (ex. documentMode, compatMode, compatible). While scraping and parsing HTML, I'm getting different behaviours in Excel on other machines in the organization which is why I want to standardize as much as I can. Code: Dim doc As HTMLDocument Set doc = New HTMLDocument Debug.Print "compatMode: " & doc.compatMode Debug