Article ID: 160956
Article Last Modified on 11/23/2006
Sub New_Comment()
ActiveCell.AddComment ("")
ActiveCell.Comment.Visible = True
End Sub
Sub Fancy_Comment()
ActiveCell.AddComment ("") 'Create the comment.
ActiveCell.Comment.Visible = True
ActiveCell.Comment.Shape.Select
With Selection
.ShapeRange.AutoShapeType = _ 'Set the AutoShape.
msoShapeExplosion2
.ShapeRange.Fill.PresetGradient _ 'Set background color.
msoGradientHorizontal, 1, _
msoGradientHorizon
.Font.Name = "Arial" 'Set the font.
.Font.FontStyle = "Bold Italic"
End With
End Sub
comments, overviewand then double-click the selected text to go to the "About adding comments and highlighting changes in a workbook" topic.
Additional query words: 97 XL97
Keywords: kbdtacode kbprogramming kbualink97 KB160956