728x90
반응형
아래 내용은 엑셀 사용 시 정렬을 바꾸며 메모 위치가 뒤죽박죽되는 경우 사용하는 재정렬 방식이다.
요약
- ALT + F11
- Insert > Module
- 코드 입력
- F5 (코드 실행 후 재정렬되어있다.)
1 . Press and hold the ALT + F11 keys to open the Microsoft Visual Basic for Applications window .
2 . Click Insert > Module and paste the following code into the Modules window .
VBA code: reset all comment positions in active worksheet
Sub ResetComments()
'Update 20141110
Dim pComment As Comment
For Each pComment In Application.ActiveSheet.Comments
pComment.Shape.Top = pComment.Parent.Top + 5
pComment.Shape.Left = pComment.Parent.Offset(0, 1).Left + 5
Next
End Sub
3 . Then press F5 to run this code, it will reset all comment positions in active worksheet at once. See screenshot:
참고
https://ko.extendoffice.com/documents/excel/2252-excel-reset-comment-positions.html#
728x90
반응형