doriannjeshi
Board Regular
- Joined
- Apr 5, 2015
- Messages
- 248
- Office Version
- 365
- Platform
- Windows
Hello,
I need to modify this macro to apply to all comments the active worksheet:
Dim lArea As Long, h As Long, n As Long
With Range("AB5").Comment
n = WorksheetFunction.RoundUp(Len(.TEXT) / 100, 0)
.Shape.TextFrame.AutoSize = True
h = .Shape.height
If .Shape.Width > 400 Then
.Shape.Width = 400
.Shape.height = h * n
End If
End With
I need to modify this macro to apply to all comments the active worksheet:
Dim lArea As Long, h As Long, n As Long
With Range("AB5").Comment
n = WorksheetFunction.RoundUp(Len(.TEXT) / 100, 0)
.Shape.TextFrame.AutoSize = True
h = .Shape.height
If .Shape.Width > 400 Then
.Shape.Width = 400
.Shape.height = h * n
End If
End With