Avatar of awesomejohn19
awesomejohn19 asked on

VBA IE Automation skipping security pop ups?

I am trying to automate ie with excel vba. I am trying to do this as much as keeping Ie.visible=false.'
However security popups are visible. I am guessing there is no way to skip these without having the secuirty pop ups visible (Is this really true?).

I use sendkeys (enter) to skip these security pop ups. however sometimes, the pop up is not on focus and behind or windows so the send keys (enter) does not skip the security pop up. How can I bring the security popup to focus ?

thanks
Microsoft ExcelVisual Basic ClassicWeb Browsers

Avatar of undefined
Last Comment
awesomejohn19

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
SiddharthRout

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SiddharthRout

And yes, one more thing....

Sendkeys is way too unreliable.... Use the PostMessageA API to close the Window :)

Sid
Norie

Why do you want to avoid these 'security popups'?

If they are warnings from IE then you could just turn off your pop up blocker and/or change the security settings in the browser.

That might affect other things though and cause problems.

I think Sid's API suggestion would work if you had IE visible, but not sure how it would, or if it would, work otherwise.

Sendkeys is definitely unrealiable for this sort of thing, in fact it's unreliable full stop really.

If you are only trying to access data and you don't actually need to interact directly with IE then you might be able to use some other method.
ASKER
awesomejohn19

Thanks for your responses. It works when ie.visible=false. so Sid is correct.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck