Solved

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

Posted on 2006-10-26
7
1,103 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

785 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