edge37
Board Regular
- Joined
- Sep 1, 2016
- Messages
- 102
- Office Version
- 365
- Platform
- Windows
Hello! I was wondering if there is a way to insert a comment in a cell where there is already a comment. The idea is that, when you click the 2nd comment (using a macro), it gets visible in a new line at the bottom in the comment already inserted. Not cancelling one for another, but to add a new comment in the same comment dialog box.
I am using a button with this macro code already to insert a certain comment:
Using Excel 2021. Can this be done?
Thank you
I am using a button with this macro code already to insert a certain comment:
VBA Code:
Sub Información()
Dim c As Range
For Each c In Selection
'If the cell already has a comment'
On Error Resume Next: c.AddComment: On Error GoTo 0
c.Comment.Visible = False
'text in comment
c.Comment.Text Text:="Work requires more information"
'font style
With c.Comment.Shape.TextFrame.Characters.Font
.Size = 12
.Name = "Arial"
.Bold = False
End With
'Adjust the size of the comment box
c.Comment.Shape.TextFrame.AutoSize = True
'comment box property
c.Comment.Shape.Placement = xlMoveAndSize
Next
End Sub
Using Excel 2021. Can this be done?
Thank you