메인 컨텐츠로 가기

시트 탭 이름을 Excel의 셀 값과 동일하게 만드는 방법은 무엇입니까?

경우에 따라 지정된 셀 값을 기반으로 워크 시트의 이름을 바꿔야 할 수 있습니다. 이 기사에서는 시트 탭 이름을 Excel의 셀 값과 동일하게 만드는 방법을 보여줍니다.

VBA 코드로 시트 탭 이름을 셀 값과 동일하게 만듭니다.
Excel 용 Kutools를 사용하여 시트 탭 이름을 셀 값과 동일하게 만드십시오.


VBA 코드로 시트 탭 이름을 셀 값과 동일하게 만듭니다.

다음 VBA 코드를 사용하면 시트 탭 이름을 셀 값과 자동으로 동일하게 만들 수 있습니다.

1. 시트 이름을 셀 값과 같게 만들 시트 탭을 마우스 오른쪽 단추로 클릭 한 다음 코드보기 오른쪽 클릭 메뉴에서. 스크린 샷보기 :

2. 아래 코드를 복사하여 코드 창에 붙여 넣은 다음 다른 + Q 키를 동시에 눌러 Microsoft Visual Basic for Applications 창을 닫습니다.

VBA 코드 : 시트 탭을 셀 값과 동일하게 만들기

Private Sub Worksheet_Change(ByVal Target As Range)
'Updated by Extendoffice 20230130
    On Error Resume Next
    If Not Intersect(Target, Range("A1")) Is Nothing Then
        ActiveSheet.Name = ActiveSheet.Range("A1")
    ElseIf Not Intersect(Target.Dependents, Range("A1")) Then
        ActiveSheet.Name = ActiveSheet.Range("A1")
    End If
End Sub

주의 사항: 코드에서 A1은 시트 이름으로 사용해야하는 값이 포함 된 셀입니다. 필요에 따라 변경할 수 있습니다.

이제부터 A1 셀의 값이 변경되면 시트 탭 이름도 동일하게 변경됩니다.


Excel 용 Kutools를 사용하여 시트 탭 이름을 셀 값과 동일하게 만드십시오.

이 섹션에서는 여러 워크 시트 이름 바꾸기 ~의 유용성 Excel 용 Kutools. 이 유틸리티를 사용하면 Excel에서 특정 셀의 값으로 워크 시트의 이름을 쉽게 바꿀 수 있습니다.

신청하기 전에 Excel 용 Kutools, 제발 먼저 다운로드하여 설치하십시오..

1. 클릭 쿠툴즈 플러스 > 워크 시트 > 여러 워크 시트 이름 바꾸기. 스크린 샷보기 :

2. 에서 여러 워크 시트 이름 바꾸기 대화 상자에서 다음과 같이해야합니다.

1). 이름을 바꿀 워크 시트 이름을 확인하십시오. 워크 시트 상자 (한 시트 또는 여러 시트를 선택할 수 있음).
2). 고르다 원래 시트 이름 바꾸기 상자에 옵션 이름 바꾸기 안내
삼). 지정된 셀 값으로 워크 시트 또는 여러 워크 시트의 이름을 바꾸려면 특정 범위에서 옵션을 클릭하고 시트 이름을 바꿀 기준이되는 셀 범위를 선택합니다.
4). 클릭 OK 단추. 스크린 샷보기 :

아래 스크린 샷과 같이 선택한 워크 시트의 이름이 지정된 범위 값으로 즉시 변경되는 것을 볼 수 있습니다.

노트:

1. 당신은 필터 워크 시트가 많은 경우 필요한 워크 시트를 쉽게 필터링 할 수있는 기능입니다.
2. 각 시트의 특정 셀 값을 사용하여 여러 워크 시트의 이름을 바꾸려는 경우. 예를 들어 sheet1은 A1 셀의 값과 같고 sheet2는 A1 셀의 값과 같습니다. 워크 시트를 선택하십시오. 워크 시트 상자를 선택한 다음 특정 셀로 워크 시트 이름 바꾸기 옵션을 선택하고 상자에 A1 셀을 지정하십시오.

3. 시트 이름은 셀 값이 변경 되어도 자동으로 변경되지 않습니다.

  이 유틸리티의 무료 평가판 (30 일)을 받으려면 그것을 다운로드하려면 클릭하십시오을 클릭 한 다음 위 단계에 따라 작업 적용으로 이동합니다.


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 (30)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Good
It was the same thing I was looking for. But now I have a question:
After these steps were done, I created several sheets, I locked the sheet, but when I lock the book and enter a value in the cell, the name of the sheet does not change. In other words, it only changes with the spreadsheet unlocked and I would like to keep the spreadsheet locked
This comment was minimized by the moderator on the site
Boas
Era mesmo isto que estava a procurar. Mas agora tenho uma questão:
Após esses passos feitos, criei várias sheet, bloqueei a folha, mas quando bloqueio o livro e digito um valor na célula, o nome da sheet não muda. Ou seja, só muda com a sheet desbloqueada e gostaria de manter a sheet bloqueada
This comment was minimized by the moderator on the site
bonjour,
que voulez-vous dire par appuyer autre autre+q dans le code vba après avoir collé.
J'ai simplement fermé la page après avoir collé et ça ne marche pas
merci
This comment was minimized by the moderator on the site
worked beautifully!
This comment was minimized by the moderator on the site
Hi Crystal,

When i paste in your code it comes back with error "user-defined type not defined"?

Thanks.
This comment was minimized by the moderator on the site
Hi Tom J,
Make sure these three options are checked in the References - VBAProject dialog box.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/error.png
This comment was minimized by the moderator on the site
This worked perfectly for my first worksheet, but not for the second or third etc (I have up to about 20 worksheets that all need this function). Am I missing something?
This comment was minimized by the moderator on the site
Hi A Owen,
This code only works for one worksheet per time. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
What is the highest nr of worksheets, that can be changed names via Kutools Plus? because the excel letting me only 17 names to changes, and that's it
This comment was minimized by the moderator on the site
I'm using your exact code from the above for VBA code which works perfectly for what I need. However, I have a bunch of macros on a sheet called Job Template that gets copied and reused for every new job. I designed all my macros based on a new copied version called Job Template (2). Once the sheet name is changed to the new job name, the macros no longer work and have to manually do it. I would like to be able to use any of my Macro buttons at any point instead of only using them before I change the sheet name.

Is there a way for the VBA code to always refer to the sheet name before running the rest of the code functions?
This comment was minimized by the moderator on the site
How can I reference two cells. for example name and id number?
This comment was minimized by the moderator on the site
This is exactly what I need, but I need the tab to recreate a date and it isn't working... I assume this is something to do with the way excel works out date and time, can anyone suggest a workaround?
This comment was minimized by the moderator on the site
Hi Nick,
Excel does not support typing the sheet name containing special characters. If the date you type contains the character /, it won't allow you to create the sheet name with that date.
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