Whenever I'm trying to load a website, a security warning pops up asking:
"Do you want to view only the webpage content that was delivered securely?"
This popup is causing errors in my code. Is there a way to disable it using VBA?
Thank you.
Here's the code snippet:
Sub Start()
Dim ie As New InternetExplorer
Dim doc As HTMLDocument
ie.Visible = True
ie.navigate ("https://mywebsite.com")
ie.FullScreen = True
Do
DoEvents
Loop Until ie.readyState = READYSTATE_COMPLETE
Set doc = ie.document
doc.getElementById("navMenu2").Click