Share via


Workbook.Protect Method (Excel)

Protects a workbook so that it cannot be modified.

Syntax

.Protect(Password, Structure, Windows)

A variable that represents a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

Password

선택

Variant

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. 대문자와 소문자, 숫자 및 기호로 구성된 강력한 암호를 사용하십시오. 이러한 요소가 혼합되어 있지 않은 암호가 취약한 암호입니다. 예를 들면 강력한 암호는 Y6dh!et5이고 취약한 암호는 House27입니다. 암호 길이는 8자 이상이어야 하고, 14자 이상의 암호라면 더 좋습니다. 자세한 내용은 Help protect your personal information with strong passwords를 참조하십시오. 암호를 기억해 두는 것은 매우 중요합니다. 암호를 잊은 경우 Microsoft에서 해당 암호를 검색할 수 없습니다. 암호는 기록해서 해당 정보와 상관없는 안전한 장소에 보관해야 정보를 더욱 안전하게 보호할 수 있습니다.

Structure

선택

Variant

True to protect the structure of the workbook (the relative position of the sheets). The default value is False.

Windows

선택

Variant

True to protect the workbook windows. If this argument is omitted, the windows aren’t protected.

참고 항목

개념

Workbook Object

Workbook Object Members