How to open password protected excel workbook through VB-6 ?
I can open workbooks having no passwords through microsoft jet provider, but
I don't know how to open password protected workbook ?
Best Regards,
Luqman
Paul Clement - 31 Oct 2003 15:54 GMT
¤ How to open password protected excel workbook through VB-6 ?
¤
¤ I can open workbooks having no passwords through microsoft jet provider, but
¤ I don't know how to open password protected workbook ?
¤
Password protected Excel Workbooks are unsupported by the OLEDB and ODBC data providers.
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
onedaywhen - 31 Oct 2003 16:13 GMT
You cannot use ADO to read a password-protected Excel workbook. The
reason is that protecting it with a password actually encrypts the
workbook on disk and ADO has no way of decrypting it. See the
following MSDN article:
Microsoft Knowledge Base Article - 211378
XL2000: "Could Not Decrypt File" Error with Password Protected File
http://support.microsoft.com/?KBID=211378
> How to open password protected excel workbook through VB-6 ?
>
[quoted text clipped - 4 lines]
>
> Luqman
Luqman - 31 Oct 2003 18:41 GMT
Thanks for your help, I have finally did it using excel object library in
VB-6.
Best Regards,
Luqman
> You cannot use ADO to read a password-protected Excel workbook. The
> reason is that protecting it with a password actually encrypts the
[quoted text clipped - 13 lines]
> >
> > Luqman