_Workbook.Protect(Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Protects a workbook so that it cannot be modified.
public void Protect (object Password, object Structure, object Windows);
Public Sub Protect (Optional Password As Object, Optional Structure As Object, Optional Windows As Object)
Parameters
- Password
- Object
Optional Object. A string that specifies a case-sensitive password for the worksheet or workbook. If this argument is omitted, you can unprotect the worksheet or workbook without using a password. Otherwise, you must specify the password to unprotect the worksheet or workbook. If you forget the password, you cannot unprotect the worksheet or workbook. It's a good idea to keep a list of your passwords and their corresponding document names in a safe place.
- Structure
- Object
Optional Object. True to protect the structure of the workbook (the relative position of the sheets). The default value is False.
- Windows
- Object
Optional Object. True to protect the workbook windows. If this argument is omitted, the windows aren’t protected.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기