
Tips.Net > WordTips Home > Fields > Special Characters in Fields
Summary: If you try to add a quote mark or a backslash as part of a field parameter or switch, you may be surprised at what you actually end up with. In order to use these characters you need to apply the technique covered in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)
When you are using fields in your documents, you may have a need to include the quote mark and the backslash in the field definition. Unfortunately, these characters have special meaning, and may not be interpreted the way you intend. Consider, for example, the following field:
{ QUOTE "You should use "Y" or "N" in your response" }
When you use this, you get exactly what you expect: a full phrase (including quote marks) in the field result. Consider the following example, however:
{ FILLIN "You should use "Y" or "N" in your response" }
When this field result is displayed, you see an input box. However, the entire prompt does not appear. You only see the text "You should use " in the input box. Similar problems are manifested when you try to use backslashes with some fields.
To get around the problem, you need to get in the habit of using a backslash before any quote or backslash you want included in the field, as in the following:
{ FILLIN "You should use \"Y\" or \"N\" in your response" }
This approach informs Word that you want the quote marks (or backslashes, if you use \\) displayed as literal characters.
Tip #545 applies to Microsoft Word versions: 97 2000 2002 2003 2007
Ultimate Library! The most amazing collection ever offered in the history of WordTips places every tip—present and historical—at your fingertips. Check out the WordTips Ten-Year Library.
Do you want a decade of WordTips information at your fingertips? You can find what you need with the WordTips Ten-Year Library. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips