Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
help to open pwd Excel from Access
I want to open an Excel file in 'read-only' with a password:
Dim db As DAO.Database Dim rst As DAO.Recordset Dim sfilename As String 'This works fine sfilename = "noPassword.xls" Set db = DBEngine.OpenDatabase(sfilename, _ False, True, "Excel 8.0") 'This does not work sfilename = "hasPassword.xls" Set db = DBEngine.OpenDatabase(sfilename, _ False, True, "Excel 8.0;PWD=123") I get this error message: Run time error 3161 Could not decrypt file -- Ed |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
help to open pwd Excel from Access
"Ed" wrote ...
I want to open an Excel file in 'read-only' with a password: I get this error message: Run time error 3161 Could not decrypt file As the error message suggests, adding a password encrypts the workbook on disk. The Excel UI is require to decrypt. See: Microsoft Knowledge Base Article - 211378 XL2000: "Could Not Decrypt File" Error with Password Protected File http://support.microsoft.com/?KBID=211378 Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
open access from excel ? | Excel Discussion (Misc queries) | |||
EXCEL TRIES TO OPEN IN ACCESS | Excel Discussion (Misc queries) | |||
Excel cannot open Access MDB | Excel Discussion (Misc queries) | |||
Open Access db from Excel | Excel Programming | |||
Open Excel from access | Excel Programming |