Microsoft KB Archive/25203

Using Caret Symbol in Macros

PSS ID Number: Q25203 Article last modified on 11-02-1994

4.00 5.00

MS-DOS

Problem:

I am trying to write a macro to search for a paragraph mark. When the macro executes the Search command, it looks for a “p” rather than the “^p” that I entered in the macro.

Response:

When writing or editing a macro that contains the caret (^) character, you must repeat the caret twice. To search for a paragraph mark, enter the characters “^^p”. The macro interprets this as “^p”.

If you are using Word version 4.00, this is explained on Page 333 in the “Using Microsoft Word” manual. If you are using Word version 5.00, this is explained on Page 444 in the “Using Microsoft Word” manual.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.