Microsoft KB Archive/44101

Word: Left and Right Chevrons in a Word Macro

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

4.00 5.00 5.50 6.00

MS-DOS

= SUMMARY =

Recorded Microsoft Word macros make a distinction between the left chevron created with the CTRL+[ key combination and the left chevron ASCII character created with the ALT+174 key combination. A distinction is also made between CTRL+] (right chevron) and ALT+175 (right chevron). This distinction does not occur if the macro is created manually rather than recorded.

This distinction can be seen if you record a macro that searches for some character and replaces it with ALT+174. When the macro is executed, Word aborts the macro with a syntax error near the ALT+174 chevron. If the same macro is run with CTRL+[ instead of ALT+174, no syntax error occurs.

In Word, if the Number Lock is off, Edit Search and Edit Replace functions may not be performed on a character produced with a ALT+number sequence. Instead, to search for an ASCII character not found on the keyboard, use a caret (“^”) symbol, followed by the numerical ASCII value of the character.

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