Excel: Replacing Text in Cell NotesLast reviewed: November 29, 1994Article ID: Q78644 |
SUMMARYMicrosoft Excel version 3.0 does not have a menu command to perform global search and replace operations on cell notes. Choosing Replace from the Formula menu only searches cell contents, not cell notes.
MORE INFORMATIONTo replace all instances of a portion of text with another portion of text in cell notes, enter the following steps in a macro sheet:
A1: Replace.notes A2: =INPUT("Replace What?",2) A3: =INPUT("Replace With?",2) A4: =IF(NOT(AND(A2,A3)),RETURN()) A5: =FOR.CELL("current") A6: =NOTE(SUBSTITUTE(GET.NOTE(current),A2,A3)) A7: =NEXT() A8: =RETURN()To run the macro, use the following steps:
REFERENCES"Microsoft Excel User's Guide," version 3.0, page 164, 239-252
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |