How to locked/unlocked cells in an Excel file?
3 次查看(过去 30 天)
显示 更早的评论
Dear,
how can I lock/unlock cells in Excell file?
For example: file = 'Fruits.xlsx', Sheet = 'Apple', Range = 'B4:B10'.
How is possible to lock the cells in range 'B4:B10' in my file and my sheet? The file and the sheet are unprotected.
Thank you very much? Jurij Rici
0 个评论
回答(1 个)
dpb
2024-8-21
You'll have to use Excel COM. The <Link to Excel Locked Property> gives the syntax; you merely set the range .Locked property to true/false.
1 个评论
Image Analyst
2024-8-21
Some files that may help are attached. Good luck. These use ActiveX so require Windows, not mac iOS.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!