How to locked/unlocked cells in an Excel file?

조회 수: 3 (최근 30일)
Jurij Rici
Jurij Rici 2024년 8월 21일
댓글: Image Analyst 2024년 8월 21일
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

답변 (1개)

dpb
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
Image Analyst 2024년 8월 21일
Some files that may help are attached. Good luck. These use ActiveX so require Windows, not mac iOS.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by