Depending on how you select a cell comment, a different version of the
Format Comment dialog box appears when you click
Comment on the
Format menu. If you have the comment frame selected, and the pointer is not within the comment text, the
Format Comment dialog box displays seven tabs:
Font,
Alignment,
Colors and Lines,
Size,
Protection,
Properties, and
Margins. However, if the pointer is flashing within the comment text, you are in Edit mode, and the
Format Comment dialog box will display just one tab:
Font.
If you record a macro in which you change the font while in Edit mode, the recorded macro does not produce the necessary code for modifying the comment font. The following code is representative of a macro recorded
while changing the comment font in Edit mode:
Sub Macro1()
Range("A1").Comment.Shape.Select True
Range("A1").Comment.Text Text:="Username:" & Chr(10) & _
"this is a test"
Range("A2").Select
End Sub
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
212240�
XL2000: Unable to Rotate AutoShapes While in Edit Mode