如果您的Word文档中有很多不打算更新的域代码,您可能需要将它们转换为纯文本。为此,您将希望通过打开字段阴影轻松找到您的字段。
这篇文章向您展示了如何在Word 2003(Word 2003)、Word 2007、Word 2010、Word 2013和Word 2016中打开和关闭字段阴影。我们还将向您展示将字段转换为纯文本的步骤,这在所有三个版本中都是相同的。
在Word 2007到 2016中打开和关闭字段底纹(Off Field Shading)
在Word 2007(Word 2007)中打开或关闭字段阴影的过程与Word 2010 – 2016中的基本相同。我们将向您展示Word 2007的步骤,并指出较新版本Word的一些差异。要开始,请单击Office按钮。
单击Office菜单底部的Word 选项按钮。(Word Options)
要访问Word 2010 至 2016 中的Word 选项,请单击(Word Options)文件(File)选项卡。
在文件(File)选项卡上,单击选项(Options)。
其余步骤对于所有版本的Word都是相同的。在Word 选项(Word Options)对话框中,单击左侧列表中的高级。(Advanced)
选中显示域代码而不是它们的值( Show field codes instead of their values)以显示用于生成域值的实际代码。请注意,您实际上不能完全隐藏该字段。Word将显示代码或结果,您可以使用此复选框在两者之间切换。您还可以使用ALT + F9键盘快捷键在字段结果和字段代码之间切换。
向下滚动到显示文档内容(Show document content)部分。从字段底纹(Field shading)下拉列表中选择所需的选项。这些选项执行与上述Word 2003(Word 2003)相同的功能。
单击“ Word 选项(Word Options)”对话框上的“确定(OK)”以接受您的更改并关闭对话框。
同样,如果您选择Always,即使光标不在字段中,也会显示字段底纹。
您可以使用与上述Word 2003(Word 2003)相同的方式切换域代码。
将字段转换为纯文本
在本文讨论的所有三个Word(Word)版本中,将字段转换为纯文本的方式相同。只需(Simply)将光标放在要转换为文本的字段中,然后按Ctrl + Shift + F9。当它是一个字段时,该字段将转换为文本作为它包含的最后一个值。
如果您改变主意,并且想要将文本转换回字段,您可以通过单击快速访问工具栏上的(Quick Access)撤消(Undo)按钮或按Ctrl + Z取消链接字段(Unlink Fields)操作。
如果要将所有字段转换为文本,可以按照本文前面所述(Ctrl + A)选择文档中的所有文本,然后按Ctrl + Shift + F9。然后,您的文档中将没有更多字段。
更新字段
如果您决定不再需要更新字段并且想要将其转换为文本,则可以轻松完成。但是,首先,您应该更新该字段以确保该字段的值是最新的。要在Word 2003中执行此操作,请右键单击字段并从弹出菜单中选择更新字段。(Update Field)
注意:(NOTE:)您也可以按F9来更新选定的字段。如果要更新文档中的所有字段,请按Ctrl + A选择文档中的所有文本,包括字段,然后按F9。文档中的所有字段都将更新。
要更新Word 2007至 2016 中的字段,请将光标放在字段中,然后单击字段上方显示的更新按钮或按(Update)F9。
注意:(NOTE:)您可以按照与上述Word 2003相同的方式更新文档中的所有字段。
在Word 2003中打开和关闭字段底纹(Off Field Shading)
要在Word 2003(Word 2003)中打开或关闭字段底纹,请从“工具(Tools)”菜单中选择“选项”。(Options)
显示选项(Options)对话框。要关闭字段着色,请从字段着色(Field shading)下拉列表中选择从不。(Never)要始终显示字段底纹,即使未选择字段或光标不在字段中,请从字段底纹(Field shading)下拉列表中选择始终。(Always)
这使您可以一目了然地查看文档中的字段。如果您只想在选择字段或光标位于字段中时查看字段底纹,请从字段底纹(Field shading)下拉列表中选择选择时。(When selected)这是安装Word(Word)时的默认选择。
要在Word(Word)文档中隐藏域代码,只需取消选中域底纹正上方称为域代码(Field codes)的框。
单击选项(Options)对话框上的确定(OK)以接受您的更改并关闭对话框。
如果您选择Always,您会注意到即使光标不在字段中,字段也会突出显示。
例如,如果您在日期字段中看到看起来像代码的东西,而不是日期,这意味着显示的是字段代码而不是字段的值。要查看字段的值,请右键单击该字段并从弹出菜单中选择切换字段代码。(Toggle Field Codes)然后您将看到日期,如上图示例所示。
如果您的部分或全部字段显示域代码(Toggle Field Codes),您可以显示所有字段的值,方法是按Ctrl + A选择文档中的所有文本,右键单击文本的任意位置,然后从弹出菜单。
您可能必须选择该选项两次,直到您的字段值显示。字段都转换为相同的状态,即使某些显示域代码和某些显示值。
Show/Hide Field Codes in Word and Convert Fields to Text
If you have a lot of field codes in your Word document that you are not going to be updating, you may want to convert them to plain text. To do this, you will want to easіly find your fields by turning on the field shading.
This post shows you how to turn on and off the field shading in Word 2003, Word 2007, Word 2010, Word 2013 and Word 2016. We will also show you the steps to convert fields to plain text, which are the same in all three versions.
Turn On and Off Field Shading in Word 2007 thru 2016
The procedure for turning on or off field shading in Word 2007 is essentially the same as in Word 2010 – 2016. We will show you the steps for Word 2007 and point out the few differences for newer versions of Word. To start, click the Office button.
Click the Word Options button at the bottom of the Office menu.
To access Word Options in Word 2010 thru 2016, click the File tab.
On the File tab, click Options.
The rest of the steps are the same for all versions of Word. On the Word Options dialog box, click Advanced in the list on the left.
Check the Show field codes instead of their values to display the actual code that is being use to generate the field value. Note that you cannot actually hide the field completely. Word will either display the code or the results and you can use this checkbox to toggle between both. You can also use the ALT + F9 keyboard shortcut to toggle between field results and field codes.
Scroll down to the Show document content section. Select the desired option from the Field shading drop-down list. The options perform the same functions as described for Word 2003 above.
Click OK on the Word Options dialog box to accept your changes and close the dialog box.
Again, if you selected Always, the field shading displays even if the cursor is not in the field.
You can toggle the field codes the same way as described for Word 2003 above.
Convert Fields to Plain Text
Converting a field to plain text is done the same way in all three versions of Word discussed in this post. Simply, put the cursor in the field you want to convert to text and press Ctrl + Shift + F9. The field is converted to text as the last value it contained when it was a field.
If you change your mind, and want to convert the text back to a field, you can undo the Unlink Fields action by clicking the Undo button on the Quick Access toolbar or press Ctrl + Z.
If you want to convert all of your fields to text, you can select all of the text in your document as described earlier in this post (Ctrl + A) and then press Ctrl + Shift + F9. You will then have no more fields in your document.
Update Fields
If you decide that you will not need to update a field anymore and you want to convert it to text, you can easily do so. However, first, you should update the field to make sure the value of the field is up-to-date. To do this in Word 2003, right-click on the field and select Update Field from the popup menu.
NOTE: You can also press F9 to update a selected field. If you want to update all the fields in a document, press Ctrl + A to select all the text in the document, including the fields, and press F9. All the fields in the document will be updated.
To update a field in Word 2007 thru 2016, put the cursor in the field and either click the Update button that displays above the field or press F9.
NOTE: You can update all of the fields in your document the same way as described above for Word 2003.
Turn On and Off Field Shading in Word 2003
To turn on or off field shading in Word 2003, select Options from the Tools menu.
The Options dialog box displays. To turn off field shading, select Never from the Field shading drop-down list. To display field shading all the time, even when the field is not selected or the cursor is not in the field, select Always from the Field shading drop-down list.
This allows you to see your fields in your document at a glance. If you only want to see the field shading when the field is selected, or the cursor is in the field, select When selected from the Field shading drop-down list. This is the default choice when you install Word.
To hide field codes in a Word document, just uncheck the box right above field shading called Field codes.
Click OK on the Options dialog box to accept your changes and close the dialog box.
If you selected Always, you will notice that fields are highlighted even when the cursor is not in the field.
If you see what looks like code in your date field, for example, rather than the date, that means the field codes are being displayed rather than the value of the field. To view the value of the field, right-click in the field and select Toggle Field Codes from the popup menu. You will then see the date, as in the example image above.
If some or all of your fields show the field codes, you can display the values of all the fields by pressing Ctrl + A to select all the text in your document, right-clicking anywhere on the text, and selecting Toggle Field Codes from the popup menu.
You may have to select the option twice until the values of your fields display. The fields are all converted to the same state, even if some display field codes and some display values.