Azzera filtri
Azzera filtri

Opening Password Protected Excel Files in Matlab

13 visualizzazioni (ultimi 30 giorni)
Ted Thompson
Ted Thompson il 25 Mar 2011
I am trying to open a password protected Excel file to use xlsread and xlsinfo. I know the password.
I have seen several posts including the xlsprotect solution which I downloaded but can't seem to get any of the solutions to work. It should work with Excel 2003 and Excel 1010.
Could someone walk me through this, please. Hopefully without pointing me to these other solutions I have already tried.
Now that I have an account on here, I can post MY SPECIFIC ERROR MESSAGES.
Thanks in advance!

Risposte (1)

Samer Husam
Samer Husam il 28 Giu 2012
Modificato: Walter Roberson il 28 Giu 2012
you can use this :
xlsprotect(file,'protect_file',pwd2open,pwd2modify,read_only_recommended,create_backup)
xlsprotect(file,'unprotect_file',pwd2open)
xlsprotect(file,'unprotect_file',pwd2open,pwd2modify)
xlsprotect(file,'protect_sheet',sheetname,password)
xlsprotect(file,'protect_sheet',sheetname,password,s_options)
xlsprotect(file,'protect_sheet',sheetname,s_options)
xlsprotect(file,'protect_sheet',sheetname)
xlsprotect(file,'unprotect_sheet',sheetname)
xlsprotect(file,'unprotect_sheet',sheetname,password)
xlsprotect(file,'protect_workbook',password)
xlsprotect(file,'protect_workbook')
xlsprotect(file,'unprotect_workbook')
xlsprotect(file,'unprotect_workbook',password)

Categorie

Scopri di più su Data Import from MATLAB in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by