newbschoolin
New member
- Local time
- Today, 06:33
- Joined
- Mar 1, 2012
- Messages
- 8
I am running into an issue with a security certificate while in IE. I am trying to make the code navigate around this.
Currently... I am able to detect that is at the security certificate screen so the instr is working correctly. However when trying to initiate the "overridelink" and it keeps giving me error. I know the better fix would be to have the security certs taken care of, but responsible parties refuse.
Problem bit - oIE.Document.all.Item("overridelink").Click
Generates error
Runtime Error -2147024891 (80070005) Access is denied.
Once again, any assistance is appreciated.
Currently... I am able to detect that is at the security certificate screen so the instr is working correctly. However when trying to initiate the "overridelink" and it keeps giving me error. I know the better fix would be to have the security certs taken care of, but responsible parties refuse.
Code:
If InStr(oIE.Document.body.innertext, "There is a problem with this website's security certificate.") > 0 Then
oIE.Silent = True
Call SleepIE(oIE)
oIE.Document.all.Item("overridelink").Click
Call SleepIE(oIE)
End If
Problem bit - oIE.Document.all.Item("overridelink").Click
Generates error
Runtime Error -2147024891 (80070005) Access is denied.
Once again, any assistance is appreciated.