The information in this article applies to:
SYMPTOMSWhen you record a macro in which you change the font of a cell comment, and then subsequently rerun the macro, the font of the comment does not change as you expect. CAUSEDepending on the method you used to select the comment while you recorded the macro, the recorded macro may not contain the necessary code to modify the font of the cell comment. RESOLUTIONMicrosoft 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.aspThe following sample macro changes the font of the active cell's comment to a bold Courier font with a font size of 14:
You can also change the font of all comments in a worksheet by running the
following macro:
STATUSThis is by design of Microsoft Excel. MORE INFORMATION
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 selected the comment frame, and the cursor is not within
the comment text, then the Format Comment dialog box displays seven tabs:
Font, Alignment, Colors and Lines, Size, Protection, Properties, and
Margins. However, if the cursor is flashing within the comment text, you
are in edit mode, and the Format Comment dialog box displays only one
tab: Font.
For additional information, please see the following article in the
Microsoft Knowledge Base:
Q181659 XL98: Unable to Rotate AutoShapes While in Edit Mode REFERENCES
For more information about the comment object, click the Office Assistant
while in the Visual Basic Editor, type comment click Search, and then
click to view "Comment Object."
Q179216 OFF98: How to Use the Microsoft Office Installer Program Additional query words: note modify XL98
Keywords : kbprg kbdta kbdtacode xlvbahowto xlvbainfo OffVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |