The information in this article applies to:
SUMMARY
By default, the text of a cell comment contains the user name in the first
line of the comment. There is no built-in feature that automatically
disables inserting the user name in the comment text. However, you can use
a Visual Basic for Applications macro to insert a blank comment. This
article contains a macro example that inserts a blank comment in the active
cell.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft Support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to
provide added functionality or construct procedures to meet your specific
needs. If you have limited programming experience, you may want to contact
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp Preventing the User Name from Appearing in a CommentTo prevent the user name from appearing in a comment, use a Visual Basic for Applications macro to create the comment. To insert an empty comment in the active cell, use the following steps:
Inserting a Blank Comment with a Gradient FillThe following example macro inserts an empty comment for the active cell. This comment is formatted with a gradient fill pattern and uses a different AutoShape and an italic bold font face.
Displaying the Comment When the Pointer is Over the CellAfter you run either of the macros in this article, the comment remains visible. You can display the comment only when you move the pointer over the red triangle in the top-right corner of the cell with the comment. To do this, use the following steps:
REFERENCESFor more information about cell comments, click the Index tab in Microsoft Excel Help, type the following text
and 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 : kbprg kbualink97 kbdta kbdtacode xlui KbVBA |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |