메인 컨텐츠로 가기

Excel에서 한 번에 여러 워크 시트를 보호하는 방법은 무엇입니까?

여러 워크 시트가 포함 된 통합 문서가 있고 이제 모든 워크 시트 또는 일부 특정 워크 시트를 보호해야한다고 가정하면 일반적으로 Excel에서 시트 보호 기능을 사용하여 시트를 하나씩 만 보호 할 수 있지만이 방법은 지루하고 보호해야하는 시트가 많으면 시간이 많이 걸립니다. Excel에서 한 번에 여러 시트를 빠르고 쉽게 보호하는 방법은 무엇입니까?

VBA 코드로 한 번에 모든 시트 보호

Excel 용 Kutools로 한 번에 여러 시트 보호

Excel 용 kutools로 한 번에 여러 시트 보호 해제


화살표 블루 오른쪽 거품 VBA 코드로 한 번에 모든 시트 보호

다음 VBA 코드를 사용하면 다음과 같이 동일한 암호로 활성 통합 문서의 모든 시트를 한 번에 보호 할 수 있습니다.

1. 누르고 ALT + F11 키가 열립니다. 응용 프로그램 용 Microsoft Visual Basic 창.

2. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭하고 다음 코드를 모듈 창.

VBA 코드 : 통합 문서의 모든 워크 시트를 한 번에 보호합니다.

Sub protect_all_sheets()
top: 
pass = InputBox("password?") 
repass = InputBox("Verify Password") 
If Not (pass = repass) Then 
MsgBox "you made a boo boo" 
Goto top 
End If 
For i = 1 To Worksheets.Count 
If Worksheets(i).ProtectContents = True Then Goto oops 
Next 
For Each s In ActiveWorkbook.Worksheets 
s.Protect Password:=pass 
Next 
Exit Sub 
oops: MsgBox "I think you have some sheets that are already protected. Please unprotect all sheets then running this Macro." 
End Sub

3. 그런 다음 F5 키를 눌러 코드를 실행하고 프롬프트 상자에 보호 된 시트의 암호를 입력합니다. 스크린 샷 참조 :

문서 보호 다중 시트1-1

4. 딸깍 하는 소리 OK을 누른 다음 암호를 다시 입력하여 암호를 확인하십시오.

문서 보호 다중 시트2-2

5. 그런 다음 OK, 모든 시트가 동일한 비밀번호로 보호되었습니다.


화살표 블루 오른쪽 거품 Excel 용 Kutools로 한 번에 여러 시트 보호

통합 문서의 모든 시트를 보호하지 않고 특정 시트 만 보호하려는 경우가 있습니다.이 상황에서는 위의 코드가 작동하지 않습니다. 하지만 함께 Excel 용 Kutools워크 시트 보호 유틸리티를 사용하면 모든 시트와 특정 시트를 빠르고 쉽게 보호 할 수 있습니다.

Excel 용 Kutools : 300 개 이상의 편리한 Excel 추가 기능으로 60 일 동안 제한없이 무료로 사용해 볼 수 있습니다.

설치 후 Excel 용 Kutools, 다음 단계를 수행하십시오.

1. 딸깍 하는 소리 쿠툴즈 플러스 > 워크 시트 보호, 스크린 샷 참조 :

2. 에서 워크 시트 보호 대화 상자에서 보호 할 시트를 선택합니다. (기본적으로 현재 통합 문서 내의 모든 워크 시트가 선택되어 있습니다.)

문서 보호 다중 시트4-4

3. 클릭 OK을 클릭 한 다음 워크 시트 보호 대화 상자에서 암호를 입력하고 확인합니다. 스크린 샷보기 :

문서 보호 다중 시트5-5

4. 그런 다음 OK, 선택한 워크 시트가 보호되었습니다.

이 기능에 대해 자세히 알아 보려면 워크 시트 보호를 클릭하십시오.


화살표 블루 오른쪽 거품 Excel 용 kutools로 한 번에 여러 시트 보호 해제

통합 문서에서 보호 된 여러 워크 시트를 동시에 보호 해제하려면 어떻게해야합니까? 물론이야, Excel 용 Kutools 또한 워크 시트 보호 해제 한 번에 보호 해제 할 수있는 유틸리티입니다.

다음 단계를 따르십시오.

1. 보호 된 워크 시트가 포함 된 통합 문서를 엽니 다.

2. 그런 다음 쿠툴즈 플러스 > 워크 시트 보호 해제, 스크린 샷 참조 :

3. 에서 워크 시트 보호 해제 대화 상자에서 보호 된 시트가 목록 상자에 나열되고 Ok 버튼, 스크린 샷 참조 :

문서 보호 다중 시트7-7

4. 그리고 워크 시트 보호 해제 워크 시트를 보호하기 위해 만든 암호를 입력하라는 대화 상자가 나타납니다. 스크린 샷을 참조하십시오.

문서 보호 다중 시트8-8

5. 비밀번호를 입력 한 후 Ok, 목록 상자에서 선택한 모든 워크 시트가 보호되지 않습니다.

참고 : 워크 시트는 동일한 암호를 가져야합니다.

이 워크 시트 보호 해제 기능에 대해 자세히 알아보십시오.

Excel 용 Kutools를 지금 다운로드하고 무료로 평가하십시오!


화살표 블루 오른쪽 거품 데모 : Excel 용 Kutools로 한 번에 모든 워크 시트 보호 또는 보호 해제

Excel 용 Kutools: 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다. 지금 다운로드 및 무료 평가판!

관련 기사 :

Excel에서 한 번에 여러 워크 시트를 보호 해제하는 방법은 무엇입니까?

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am trying to use this in a shared workbook but I get a Microsoft Visual Basic error "Run-time error '1004": Application-defined or object-defined error" I am just looking for suggestions on how to get around this. Any help would be appreciated
This comment was minimized by the moderator on the site
Occurs when sheet is already locked
This comment was minimized by the moderator on the site
Thanks for the wonder full tool to protect & unprotect all the sheets at a time. Please guide me I am able to unprotect all sheets in my work book at a time but when I run protect all sheets VBA Code then only first 4 sheets are protected & rest or left unprotected. Please help me to sort out the issue.
This comment was minimized by the moderator on the site
How do I mask the password using the VBA method? I can not find this information via google or F1 help files. Thanks in advance!
This comment was minimized by the moderator on the site
Hi I used this code now I it wont accept my password to get back into my spreadsheet !!
This comment was minimized by the moderator on the site
I have chart tabs and worksheets in my Excel 2013 workbook. The VBA coding above works for the protecting the worksheets but not the separate chart tabs. How do i password protect the multiple chart tabs and multiple worksheets in my workbook? Thanks!
This comment was minimized by the moderator on the site
Hey, I need some help, the above code was very helpful, but it locks the sort (auto filter as well) can you please provide code to solve that problem and also where it would be inserted. Thank you in advance.
This comment was minimized by the moderator on the site
Thank you! This is awesome, I was even able to modify the VBA code so that I could unprotect all sheets at once! :) Sub unprotect_all_sheets() top: pass = InputBox("password?") repass = InputBox("Verify Password") If Not (pass = repass) Then MsgBox "you made a boo boo" GoTo top End If For i = 1 To Worksheets.Count Next For Each s In ActiveWorkbook.Worksheets s.Unprotect Password:=pass Next Exit Sub oops: MsgBox "I think you have some sheets that are already protected. Please unprotect all sheets B4 running this Macro." End Sub
This comment was minimized by the moderator on the site
when i activated this VBA, hyperlink doesn't work. how can i make them work? tnx :)
This comment was minimized by the moderator on the site
I am suddenly having the 1004 error as well. Anyone find a solution?
This comment was minimized by the moderator on the site
I'm suddenly having the error 1004 issue. Have been using the macro for months now it randomly fails.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations