Would someone record Alt+X for me?

B

Bear

I see this kind of assertion in posts a lot: "I typed 2212 in my document and
then hit ALT+x and it converted the 2212 to a true minus sign."

I gather this functionality was added after Word 2000. Can anyone provide
the VBA equivalent of this operation so I can add it to my toolset?

Bear
 
S

Suzanne S. Barnhill

The Word command listed in Undo for this action is Toggle Character Code. A
recorded macro also reflects this:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded Friday, May 18, 2007 by Suzanne S. Barnhill
'
Selection.ToggleCharacterCode
End Sub

Note that the code (2212 in this case) does not, however, need to be
selected for this to work provided Alt+X is pressed immediately after typing
the numbers. You can, however, select any character in the document and
press Alt+X to get its corresponding character code.
 
B

Bear

Suzanne:

Thanks for the information. I guess I'm out of luck, because I just can't
find that command in Word 2000. It's not in the list of Word commands
available in the Macros dialog box, and VBE won't react to it when I type it
in. No mention in the Help either.

Must be a later innovation.

I wonder if I can cobble together an approximation.

Bear
 
Top