Opening Password Protected Excel Files in Matlab

13 ビュー (過去 30 日間)
Ted Thompson
Ted Thompson 2011 年 3 月 25 日
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!

回答 (1 件)

Samer Husam
Samer Husam 2012 年 6 月 28 日
編集済み: Walter Roberson 2012 年 6 月 28 日
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)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by