Results 1 to 7 of 7

Thread: Password request for connecting to a protected xls file

  1. #1

    Password request for connecting to a protected xls file



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I create a Pivot Table and use external connection to connect the data.
    The data is a shared excel file (office 2010) with password protected. I have the password.

    When I connect the PT to the protected data, it pop up for a password request. I input the correct password but cannot connect.
    Something doing wrong?

    Pls kindly advise. Thanks.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	data_link_pwd.JPG 
Views:	19 
Size:	30.6 KB 
ID:	988  

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,268
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    What is the exact error message that you get when it can't connect?
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    I attached the data file (test_pwd.xlsx) and the open password is 123.

    Pls try to use another excel file to create pivot table and connect by external connection. Just like the screendump.

    I don't know what should I do even though I know the open password.

    Thanks.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	external_connection.JPG 
Views:	18 
Size:	22.5 KB 
ID:	1012  
    Attached Files Attached Files

  4. #4
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,268
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    This is kind of interesting...

    If I open the test workbook first, then I'm able to update the pivottable. If I don't though, then I get stuck in error messages trying to provide the correct username and password.

    Without knowing the password setup to get this right, I'm wondering about coding a routine to open a copy of the target workbook first, before the update happens. Should be able to do that via VBA. Does that sound of interest?
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  5. #5
    If I open the test workbook first, I also cannot connect the data. How can you do that?

    Sent from my phone using Tapatalk

  6. #6
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,268
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    I opened the workbook, and provided the password manually. It just worked when I did that.
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  7. #7
    Quote Originally Posted by Ken Puls View Post
    I opened the workbook, and provided the password manually. It just worked when I did that.
    If the data source is a "share workbook", it still cannot be connect even though provoide the password mannually.
    Any work-a-round solution such as VB code?

Posting Permissions

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