Solved

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

Posted on 2006-10-26
7
1,128 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

717 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