Searching with Character Codes

November 7, 2000 – 12:00 pm

In our last newsletter, I explained how to find Microsoft Word footnote numbers using the character code ^02. You can read the newsletter here:

http://www.topica.com/lists/editorium/read/message.html?mid=1703696660

There are other character codes you can use to find certain items:

* For a carriage return, you can use ^013.

* For a section break, you can use ^012.

* For a word space, you can use ^032.

Of course, you can also use Word’s built-in codes, which you can insert into the Find dialog’s “Find what” box by clicking the “Special” button:

* For a carriage return, you can use ^p.

* For a section break, you can use ^b.

* For a word space, you can use ^w for a word space (actually, any white space).

So why would you want to use the first codes?

Because if you’re finding something by using wildcards, the second ones won’t work. For example, let’s say that (for some reason) you’re searching for “wh” followed by any other character (the wildcard for which is “?”), followed by a carriage return. In the Find dialog’s “Find what” box, you enter this:

wh?^p

And to make Word search for the wildcard rather than an actual question mark, you put a check in the box labeled “Use wildcards.”

Finally, you click the Find button. What happens? You get an error message:

“^p is not a valid special character for the Find What box or is not supported when the Use Wildcards check box is selected.”

“Well then, how,” you politely ask your computer, “am I supposed to find what I’m looking for?”

As usual, it doesn’t reply, but here’s the answer anyway. In the “Find what” box, you enter this:

wh?^013

And that will do the job.

Ordinarily, you should probably use Word’s built-in codes, such as ^p and ^b. But when those don’t work, now you’ve got an alternative.

_____________________________________________________

THE FINE PRINT

Editorium Update (ISSN 1534-1283) is published by:

The EDITORIUM, LLC

Microsoft Word Add-Ins for Publishing Professionals

http://www.editorium.com

Copyright © 2008 by the Editorium. All rights reserved. Editorium Update and Editorium are trademarks of the Editorium.

You may forward copies of Editorium Update to yourself and others (but not charge for it) and print or store it for your own use. Any other broadcast, publication, retransmission, copying, or storage, without written permission from the Editorium, is prohibited. Send reprint requests to reprints [at symbol] editorium.com

Editorium Update is provided for informational purposes only and without a warranty of any kind, either express or implied, including but not limited to implied warranties of merchantability, fitness for a particular purpose, and freedom from infringement. The user assumes the entire risk as to the accuracy and use of this document.

The Editorium is not affiliated with Microsoft Corporation.

_____________________________________________________

HOW TO SUBSCRIBE OR UNSUBSCRIBE

To subscribe, send a blank email message to editorium-subscribe [at symbol] topica.com.

To unsubscribe, send a blank email message to editorium-unsubscribe [at symbol] topica.com.

We do not sell, rent, or give our subscriber list to anyone.

____________________________________________________

You must be logged in to post a comment.