The information in this article applies to:
SUMMARYWhen you work in a Microsoft Excel worksheet, you may want to make the current work item bold to make it easier to read. This article contains a sample Visual Basic for Applications macro that makes the font of the current row bold. 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.aspThe example uses the SelectionChange event of the worksheet to change the font of the current row. Each time you make a new selection on the worksheet, the entire row that contains the selection become bold. NOTE: When you select a range that contains more than one row, only the row containing the active cell becomes bold. To change the font of the current row by using the sample macro, follow these steps:
NOTE: As a result of using the SelectionChange event and the macro assigned to it, you may not be able to use some editing features, for example the Copy command. REFERENCES
For more information about the SelectionChange event, click the Office
Assistant in the Visual Basic Editor, type SelectionChange event, click
Search, and then click to view "SelectionChange Event."
Q120802 Office: How to Add/Remove a Single Office Program or Component Additional query words: XL97 Event
Keywords : kbprg kbdta kbdtacode KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |