The information in this article applies to:
SYMPTOMSIf you type text that begins with an apostrophe character (') in the Find what box in the Find or Replace dialog box, and then click Find Next, you may receive the following error message: If you click Replace All, you may receive the following error message:
CAUSEThe engine for the Find and Find Next commands does not recognize a leading apostrophe character because, in this position, this character is designed to be transparent. WORKAROUNDTo work around this problem, use any of the following methods. Method 1: To Replace the Contents of a Single CellReplace the contents of a single cell that contains text that begins with an apostrophe character. To do this, follow these steps:
Method 2: To Replace the Contents of Multiple CellsMicrosoft 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.aspReplace the contents of multiple cells that contain text entries that begin with apostrophes. To do this, use the following Visual Basic for Applications procedure to remove hidden leading apostrophes from a selected range of cells.
Method 3: Use Copy and PasteReplace the contents of a single cell, or multiple cells that contain numbers that begin with an apostrophe character. To do this, follow these steps:
Additional query words: xl2000
Keywords : kbprg kbualink97 kbdta kbdtacode xlvbahowto xlformula |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |