메인 컨텐츠로 가기

Excel에서 내용에 맞게 주석 상자 크기를 자동으로 조정하는 방법은 무엇입니까?

셀에 주석을 삽입 할 때 주석 상자의 크기가 기본값입니다. 많은 콘텐츠를 입력하면 일부 콘텐츠가 직접 보이지 않습니다. 주석 상자의 크기를 내용에 자동으로 맞출 수 있습니까?

워크 시트의 내용에 맞게 주석 상자 크기 자동 조정
셀 범위에 내용을 맞추기 위해 주석 상자 크기 자동 조정
놀라운 도구를 사용하여 활성 시트 또는 모든 시트에 내용에 맞게 주석 상자의 크기를 쉽게 자동 조정


워크 시트의 내용에 맞게 주석 상자 크기 자동 조정

Excel에서는 주석 상자를 필요한 크기로 하나씩 수동으로 끌 수 있지만 크기를 조정해야하는 주석 상자가 많은 경우이 방법은 지루하고 시간이 많이 걸립니다. 이 경우 다음 VBA 코드를 적용 할 수 있습니다.

1. ALT + F11 키가 열립니다. Microsoft Visual Basic for Applications 창.

2. 클릭 끼워 넣다 > 모듈을 클릭하고 다음 매크로를 모듈 창.

VBA 코드 : 워크 시트의 주석 상자 크기 자동 조정

Sub FitComments()
'Updateby20140325
Dim xComment As Comment
For Each xComment In Application.ActiveSheet.Comments
    xComment.Shape.TextFrame.AutoSize = True
Next
End Sub

3. 그런 다음 F5 키를 눌러이 코드를 실행하고 활성 워크 시트의 모든 주석 상자의 크기가 다음 스크린 샷과 같이 내용에 맞게 조정되었습니다.

문서 자동 크기 조정 주석1

참고 :이 코드는 현재 워크 시트에서만 작동하며 추가하는 새 주석 상자의 크기를 자동으로 조정할 수 없습니다.


한 번의 클릭으로 주석 상자의 크기를 Excel의 내용에 자동으로 빠르게 맞 춥니 다.

XNUMXD덴탈의 주석 자동 맞춤 ~의 유용성 Excel 용 Kutools 아래 데모와 같이 워크 시트의 내용에 자동으로 주석 상자의 크기를 빠르게 맞출 수 있습니다. 지금 다운로드하여 사용해 보세요! (30일 무료 트레일)


셀 범위에 내용을 맞추기 위해 주석 상자 크기 자동 조정

셀 주석 상자의 범위를 자동으로 조정해야하는 경우 다음 VBA 코드를 사용할 수 있습니다.

1. ALT + F11 키가 열립니다. Microsoft Visual Basic for Applications 창.

2. 클릭 끼워 넣다 > 모듈을 클릭하고 다음 매크로를 모듈 창.

VBA 코드 : 셀 범위에서 주석 상자 크기 자동 조정

Sub Fitrangecomments()
'Updateby20140325
Dim rng As Range
Dim WorkRng As Range
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each rng In WorkRng
    If Not rng.Comment Is Nothing Then
        rng.Comment.Shape.TextFrame.AutoSize = True
    End If
Next
End Sub

3. 그런 다음 F5 키를 눌러이 코드를 실행하면 주석 상자의 크기를 조정할 셀 범위를 선택하라는 메시지 상자가 나타납니다. 스크린 샷을 참조하십시오.

문서 크기 조정 주석 상자3

4. 그런 다음 OK, 선택한 셀 주석 상자가 주석 내용에 자동으로 맞춰졌습니다.

:이 코드는 추가 한 새 주석 상자의 크기를 자동으로 조정할 수 없습니다.


주석 상자의 내용을 활성 시트 또는 모든 시트에 맞게 자동 크기 조정 

당신은 시도 할 수 있습니다 자동 맞춤 설명 ~의 유용성 Excel 용 Kutools 자동으로 크기를 조정하려면활성 시트의 주석 상자 또는 Excel의 모든 시트. 다음과 같이하십시오.

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

1. 주석 상자의 내용을 활성 시트에 맞게 자동 크기 조정하려면 쿠툴 > 더 보기 > 자동 맞춤 설명 > 활성 시트.

전체 통합 문서의 모든 주석 상자 크기를 자동으로 조정하려면 쿠툴 > 더 보기 > 자동 맞춤 설명 > 모든 시트. 스크린 샷보기 :

그런 다음 모든 주석 상자는 내용에 맞게 자동으로 크기가 조정됩니다. 스크린 샷보기 :

노트:

  • 1. 댓글 상자의 크기를 자동 조정 한 후 댓글을 다시 편집하면 댓글 상자가 내용과 함께 자동으로 확장 또는 축소됩니다.
  • 2. 삽입 한 새 주석의 경우 새로 삽입 된 모든 주석 상자의 크기를 조정하려면이 자동 맞춤 주석 유틸리티를 다시 활성화해야합니다.

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


내용에 맞게 주석 상자 크기를 쉽게 자동 조정


관련 기사 :

최고의 사무 생산성 도구

🤖 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 (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi. I've been using an xls spreadsheet for 10+ years. Suddenly, all my note boxes were hugely expanded, showed as a blank note until I edited them. Your solution below worked to resize all of my note boxes to fit contents. But now when I try to resize the note box to add more text, Excel crashes. This is even after I saved as an xlsx file to remove all VB code. Can you help?

Sub FitComments()
'Updateby20140325
Dim xComment As Comment
For Each xComment In Application.ActiveSheet.Comments
xComment.Shape.TextFrame.AutoSize = True
Next
End Sub
This comment was minimized by the moderator on the site
Bom-dia,

Salvou de mais! Após abrir planilha no celular todos os comentários ficaram desajustados no pc.
Tinha mais de 10 mil comentários pra arrumar o tamanho da caixa! Se tivesse pix eu até pagava! Obrigado.
This comment was minimized by the moderator on the site
It doesn't work, the insert module does not show up
This comment was minimized by the moderator on the site
amazing! thank you, the first way works! saved me hours of work!
This comment was minimized by the moderator on the site
I guess Crystal got us off track the question was: Is there a way of making the line from the comment box to the cell darker or fatter? That would be the line surrounding the comment box. TIA DD
This comment was minimized by the moderator on the site
Is there a way of making the line from the comment box to the cell darker or fatter?
This comment was minimized by the moderator on the site
Hi Demondrew,
Sorry can help you for that.
This comment was minimized by the moderator on the site
Thank you so much for sharing this. Really helpful!
This comment was minimized by the moderator on the site
@DENNIE "While the code works it makes the box one line high meaning that large comments disappear off-page somewhere. Could you give the code for fixing the width of each box (to let's say three standard Excel column widths) and auto-adjusting the length of the box to fit the text? Thanks." // Agreed
This comment was minimized by the moderator on the site
Thank you very much. This really saved me from lots of hassles.
This comment was minimized by the moderator on the site
While the code works it makes the box one line high meaning that large comments disappear off-page somewhere. Could you give the code for fixing the width of each box (to let's say three standard Excel column widths) and auto-adjusting the length of the box to fit the text? Thanks.
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