简体   繁体   中英

Excel Web query: Unable to pass username and password to Windows security Login

I am trying to automate few web queries for my company's website.

The website is password secured and everytime the excel is opened, it asks for the UID and pwd via the windows security pop-up.

Is there a way to pass the credentials to windows security login via VBA.

PS: I tried to open a web browser, connect to it and then run the

ActiveSheet.QueryTables.add(Connection:=connstring, Destination:=Range("B2"))

with required query parameters. It is not helping.

The windows security login box still pops up.

Hi all thanks for trying to help. I realized. it is tricky to automate the Login via Excel Web queries. Alternatively, I tried using Python to scrape data from the site, it was easy and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM