Solved

How to Link password protected Excel File as a Table in MS Access

Posted on 2006-10-26
7
1,095 Views
Last Modified: 2012-05-05
Hello,

Title of my questions says all.

I have a password protected Excel file and I would like to link this file to MS Access table.

I can link unprotected Excel file.  But Excel file with password gives me some wiered error message.

Please help
0
Comment
Question by:Jagdish_Bodani
  • 2
  • 2
7 Comments
 
LVL 15

Accepted Solution

by:
MNelson831 earned 63 total points
ID: 17815490
I do not think that this can be done.  Also, I suspect that an answer to this question would violate EE's TOS agreement regarding efforts to defeat security measures.  Sorry
0
 
LVL 15

Expert Comment

by:MNelson831
ID: 17815498
I do think that you can link to the file if it has already been opened, but that is rarely useful.  If you have to open the file everytime that you want the database to connect to it then the purpose of having a linked table is usually moot.
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 62 total points
ID: 18034685
Jagdish_Bodani,

MNelson831 is correct...
Can't be done.
http://support.microsoft.com/kb/257819
(MNelson831, I thought I could sneak around this by using ADO, but no such luck!)
:(


Jagdish_Bodani, your only options would be to unprotect the Excel file or to dump Excel altogether, and use Access.
0
 

Expert Comment

by:GenevaITguys
ID: 34961240
There should still be a way to link using the password. If you have the password, the access is most probably valid, no ?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34961553
GenevaITguys,

Again, the ADO code will link to the Excel file, but the text in the link clearly states:
<On the Connection tab, browse to your workbook file. Ignore the "User ID" and "Password" entries, because these do not apply to an Excel connection.  You cannot open a password-protected Excel file as a data source...>

http://support.microsoft.com/kb/257819

I quickly researched using DAO, but I did not find a direct way to do this either.

So as with anything,...
There may be a way, ...I just can't find one.

;-)

JeffCoachman

0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now