메인 컨텐츠로 가기

Excel에서 셀을 읽기 전용으로 만드는 방법은 무엇입니까?

대부분의 경우 다른 사용자가 워크 시트의 지정된 셀을 편집하지 못하도록해야 할 수 있습니다. 이 문서에서는 지정된 셀을 읽기 전용으로 만드는 데 도움이되는 두 가지 방법을 제공하여 다른 사람이 읽기를 제외하고는 이러한 셀을 편집 할 수 없도록합니다.

워크 시트를 보호하여 셀을 읽기 전용으로 만듭니다.
워크 시트를 보호하지 않고 VBA 코드로 셀을 읽기 전용으로 만듭니다.


워크 시트를 보호하여 셀을 읽기 전용으로 만듭니다.

읽기 전용으로 만들려는 셀만 잠근 다음이 워크 시트를 보호하여이를 달성 할 수 있습니다. 다음과 같이하십시오.

1. 을 클릭합니다 현재 워크 시트의 왼쪽 상단에있는 버튼을 클릭하여 전체 셀을 선택합니다.

2. 누르세요 Ctrl 키 + 1 동시에 열려면 키 셀 서식 대화 상자. 대화 상자에서 고정 아래 상자 보호 탭을 클릭 한 다음 OK 단추. 스크린 샷보기 :

3. 이제 읽기 전용으로 만들려는 셀을 선택합니다 (여기서는 범위 A1 : C18의 셀을 선택합니다). 눌러 Ctrl 키 + 1 동시에 열려면 키 셀 서식 대화 상자에서 고정 아래 상자 보호 탭을 클릭 OK 버튼을 클릭합니다.

4. 계속해서 검토 > 시트 보호. 스크린 샷보기 :

5. 아래 스크린 샷과 같이 워크 시트를 보호하기 위해 암호를 지정하고 확인합니다.

이제 잠긴 범위의 셀은 이제 읽기 전용입니다. 범위 내에서 이러한 특정 셀을 편집하려고하면 아래 스크린 샷과 같은 프롬프트 상자가 나타납니다.


현재 통합 문서에서 동시에 암호로 여러 / 모든 워크 시트를 보호합니다.

Microsoft Excel을 사용하면 한 번에 암호로 하나의 워크 시트를 보호 할 수 있습니다. 여기에서 사용할 수 있습니다 워크 시트 보호워크 시트 보호 해제 유틸리티 Excel 용 Kutools 동시에 암호를 사용하여 현재 통합 문서의 여러 워크 시트 또는 모든 워크 시트를 빠르게 보호하거나 보호 해제합니다.
지금 다운로드하여 사용해 보세요! (30일 무료 트레일)


워크 시트를 보호하지 않고 VBA 코드로 셀을 읽기 전용으로 만듭니다.

셀을 읽기 전용으로 만들기 위해 워크 시트를 보호하지 않으려는 경우. 이 섹션의 VBA 스크립트는이 문제를 쉽게 해결하는 데 도움이됩니다.

1. 셀을 읽기 전용으로 만드는 데 필요한 시트 탭을 마우스 오른쪽 단추로 클릭 한 다음 코드보기 오른쪽 클릭 메뉴에서.

2. 오프닝에서 응용 프로그램 용 Microsoft Visual Basic 창에서 아래 VBA 코드를 복사하여 코드 창에 붙여 넣습니다.

VBA 코드 : Excel에서 읽기 전용으로 셀 만들기

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Column = 1 Then
        If Target.Row = 3 Or Target.Row = 4 Or Target.Row = 5 Then
            Beep
            Cells(Target.Row, Target.Column).Offset(0, 1).Select
            MsgBox Cells(Target.Row, Target.Column).Address & " cannot be selected and edited as it is a read-only cell", _
            vbInformation, "Kutools for Excel"
        End If
    End If
End Sub

주의 사항:이 코드는 한 열에 지정된 셀을 읽기 전용으로 만들 수 있습니다. 이 코드에서는 A3, A4 및 A5 셀을 현재 워크 시트에서 읽기 전용으로 만듭니다.

3. 누르세요 다른 + Q 닫는 키 응용 프로그램 용 Microsoft Visual Basic 창.

현재 워크 시트에서 A3, A4 또는 A5 셀을 클릭하면 Excel 용 Kutools 아래 스크린 샷과 같이 대화 상자가 표시되고 커서가 자동으로 오른쪽 인접한 셀로 이동합니다.

최고의 사무 생산성 도구

🤖 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 (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Very useful!!
This comment was minimized by the moderator on the site
Hi! How about if i want to just make 1 column editable and the rest uneditable? Thanks!
This comment was minimized by the moderator on the site
Hi Jac,
Please click on the column header to select the whole column, then do the steps mentioned in the post to unlock the column cells then protect the worksheet.
This comment was minimized by the moderator on the site
every usefull, thank you with gratitude
This comment was minimized by the moderator on the site
Thanks for the quick guidance.
This comment was minimized by the moderator on the site
Hi



I have mulipe sheets Menu ( option A1& A2) , A1 and A2 and VIEW work sheets ( where i will have BROWSE button) .



1. In menu i will select A1..

2. it will go to VIEW sheet ( which is working fine) till now ..

3. when i click on the BROWSE in the VIEW sheet A1 shee shoulf get displayed and the content present in the cells should be non editable..



Could you please help..
This comment was minimized by the moderator on the site
Good day,
Supposing there is a Command Button (ActiveX Control) in the View sheet. After inserting the below VBA into the worksheet code window, click on the button, in a popping up Kutools for Excel dialog box, specify a password to protect the sheet A1. Then sheet A1 is opened and non editable.

Private Sub CommandButton1_Click()
Dim xSheet As Worksheet
Dim xStr As String
On Error Resume Next
Set xSheet = Sheets("A1")
If xSheet Is Nothing Then Exit Sub
xSheet.UsedRange.Locked = True
xStr = Application.InputBox("Please specify a password to protect the sheet A1", "KuTools for Excel", , , , , , 2)
If xStr = False Or xStr = "" Then Exit Sub
xSheet.Protect xStr
xSheet.Activate
End Sub
This comment was minimized by the moderator on the site
i just want to make few cells of a book locked for input, only they shows the result as i programmed them to do so
This comment was minimized by the moderator on the site
Hey, Thanks a lot for this steps.


However, what if I want to copy the values in the cells that I have locked?
This comment was minimized by the moderator on the site
Dear Yahia,
The locked cells in a protected worksheet can't be copied.
This comment was minimized by the moderator on the site
Very Helpful. Thanks ! :D
This comment was minimized by the moderator on the site
Dear i want to protect the hidden cells from by copying to the new sheet, is there any option in the excel sheet for that. Means no can able to view the formulaes after copying from one sheet to other sheet.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations