+ Reply to Thread
Results 1 to 4 of 4

Automate Internet Explorer Windows Security credential entry thorough VBA

  1. #1
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Exclamation Automate Internet Explorer Windows Security credential entry thorough VBA

    I have an existing macro that opens up an URL in IE, enters my user ID, password and submit before doing few other tasks. Off late, I am frequently getting a pop-up window asking for my Windows credentials before the URL is opened. My macro stops working when the popup prompt is displayed.
    • Cannot reduce security level of IE.
    • Pop up title is “Windows Security”. I am not sure when this one fires so cannot use SendKeys since if this popup is not active, SendKeys enters Windows credentials in the URL that opens up.
    • I tried to capture all IE open windows (using ShellWindows) to identify popup window title but this popup doesn’t show in list of open windows
    • This popup doesn’t show up in task manager.
    • IE ReadyState is in READYSTATE_LOADING when this popup opens. I can make the code wait for few seconds, if it is still in loading status, then I can use SendKeys but I am keeping that as last option as IE could be in that status because of network speed and don’t want to keep that waiting time for long.

    The question, is there a way to identify if Windows Security popup is fired and active? How to capture that instance through VBA? Is there any other way I can automate entering my Windows credentials in this prompt? These won’t normally change for few months so I am fine to hard code them in Excel declarations.

    I use Excel 2010 with Windows 7 SP1 OS.

    My code looks something like below.
    Please Login or Register  to view this content.
    Thanks for your time and help.
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Automate Internet Explorer Windows Security credential entry thorough VBA

    You really need to automate the process outside using the WINHttp library and parsing the results manually - that has options for setting credentials like this

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Automate Internet Explorer Windows Security credential entry thorough VBA

    Thanks for the reply Kyle. How about using Windows API to handle this security popup? Problem is, my knowledge in Windows API is very minimal. No clue about which API need to be called. Any help in those lines?

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Automate Internet Explorer Windows Security credential entry thorough VBA

    Not from me I'm afraid

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help Automate Clicking Multiple Links Internet Explorer
    By spiklz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2015, 10:56 AM
  2. Internet Windows Security POPUP
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2014, 08:09 PM
  3. Replies: 4
    Last Post: 04-05-2014, 08:53 AM
  4. [SOLVED] How to toggle focus between INTERNET explorer window and WINDOWS explorer window using VBA
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2013, 03:29 PM
  5. VBA to Automate Internet Explorer
    By ktennies in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 01:03 PM
  6. Automate Internet Explorer File Upload
    By plasma33 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2012, 05:21 AM
  7. Automate Excel/Internet Explorer Interaction
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2009, 04:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1