+ Reply to Thread
Results 1 to 1 of 1

Ignore password prompt when opening file

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Ignore password prompt when opening file

    I have the following code:

    
    Dim FSC         As Workbook
    
    Set FSC = Workbooks.Open("http://blahblahblah.com/g086032.xls")
    This opens the workbook - but the workbook is on my company's intranet, and it asks me for a username and password. I can just hit the escape key, and the file will load just fine, but I cannot figure out a way to get VBA to "hit escape" during the loading phase.

    I've also tried the following code without any luck - it seems as though the code does not finish the "Set FSC" line (as the popup pops up) so it can never execute the application.sendkeys code.

    
    Dim FSC         As Workbook
    
    Set FSC = Workbooks.Open("http://blahblahblah.com/g086032.xls")
    Application.SendKeys (ESCAPE)
    Any ideas?
    Last edited by lordterrin; 12-02-2013 at 12:25 PM.

+ 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. [SOLVED] Password prompt when opening Excel within IE
    By brianw in forum Excel General
    Replies: 0
    Last Post: 07-10-2006, 03:44 PM
  2. Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  3. Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  4. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. Replies: 0
    Last Post: 01-26-2005, 05:06 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