Forum Discussion
Ko Lay
Sep 05, 2018Copper Contributor
Excel default comment setting
Hi, I couldn't find how to change the default setting for comment in excel (Office 2016). Please help. Thank you.
- Sep 07, 2018
This example macro formats a comment as a diamond shape with a red border:
Sub AddAndFormatComment() With ActiveCell If .Comment Is Nothing Then .AddComment .Comment.Text Text:=Application.UserName & Chr(10) & "" End If With .Comment.Shape .AutoShapeType = msoShapeDiamond .Line.ForeColor.RGB = vbRed End With With .Font .Name = "Tahoma" .Size = 10 End With End With End Sub
Ko Lay
Sep 06, 2018Copper Contributor
I'm not sure how to do that but I'll give it a try.
Thank you.
JKPieterse
Sep 07, 2018Silver Contributor
This example macro formats a comment as a diamond shape with a red border:
Sub AddAndFormatComment()
With ActiveCell
If .Comment Is Nothing Then
.AddComment
.Comment.Text Text:=Application.UserName & Chr(10) & ""
End If
With .Comment.Shape
.AutoShapeType = msoShapeDiamond
.Line.ForeColor.RGB = vbRed
End With
With .Font
.Name = "Tahoma"
.Size = 10
End With
End With
End Sub
- Ko LaySep 07, 2018Copper Contributor
Hi Jan,
Thank you very much.