I accidentally submitted this with wrong subject. I wanted it to say Modify Comment. I tried to modify or delete and start over but do know how to do either.
But ...
How can this be modified so it works with a Range or Activecell. I have tried several combinations without success.
But ...
How can this be modified so it works with a Range or Activecell. I have tried several combinations without success.
VBA Code:
Sub ModifiyComments()
Dim MyComments As Comment
Dim LArea As Long
For Each MyComments In ActiveSheet.Comments
With MyComments
.Shape.AutoShapeType = msoShapeRoundedRectangle
.Shape.TextFrame.Characters.Font.Name = "Tahoma"
.Shape.TextFrame.Characters.Font.Size = 8
.Shape.TextFrame.Characters.Font.ColorIndex = 2
.Shape.Line.ForeColor.RGB = RGB(0, 0, 0)
.Shape.Line.BackColor.RGB = RGB(255, 255, 255)
.Shape.Fill.Visible = msoTrue
.Shape.Fill.ForeColor.RGB = RGB(58, 82, 184)
.Shape.Fill.OneColorGradient msoGradientDiagonalUp, 1, 0.23
End With
Next 'comment
End Sub
Last edited: