I access a website through VBA. This website has a security certificate.
Is there a way to get through this warning and go straight to the webpage.
Sub Certificate() Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") With IE .Visible = True .navigate ("Website URL") While IE.ReadyState <> 4 DoEvents Wend {Application.Wait (Now + TimeValue("0:00:05"))}--Optional 'This is the security certificates webpage HTML 'This clicks the not recommended but continue to website button IE.document.getElementsByName("overridelink").Item.Click End With End Sub When I execute this code this line:
IE.document.getElementsByName("overridelink").Item.Click gives me a
Runtime error '91'
This code works when the security certificate warning pops up however it doesn't always pop up and goes straight to the website, giving me that error.
I've gone into internet options and unchecked everything that would cause that warning as well as adding it to trusted site.