The information in this article applies to:
SUMMARYThe following macro command will convert a numeric value in the active cell to a text string:
For example, when you run this command on a cell that contains the
following entry:
3the entry is converted to the following: ="3" 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 follow macro example converts either a single cell or a range of cells from numeric data to text so that you can affect multiple cells at one time. A1: Convert_number_to_text Microsoft Excel Version 4.0You can assign this macro to a button in Microsoft Excel version 4.0 by using the following steps:
Microsoft Excel Versions 5.0 and laterNOTE: This macro command also applies to Microsoft Excel versions 5.0 and 7.0, but is not required, because of the ability to format cells as text. To format cells as text in Microsoft Excel version 5.0 and 7.0, do the following:
NOTE: If you format a cell as Text in Microsoft Excel versions 5.0 and 7.0, the underlying cell value will still be treated as a number, if that is what you entered in the cell. The following Visual Basic for Applications macro will convert underlying cell values to Text.
To use this macro, select the range of cells you want converted to text and
then run the macro.
Additional query words: 2.00 2.01 2.10 2.20 2.21
Keywords : kbcode kbprg |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |