Deleting Field Codes

E

Elizabeth

I need to delete all of the field codes from my document in
Word 2002. Is there any way to do this?

Thanks for your help!

Best regards,
Elizabeth
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Elizabeth,

If you want to retain the data that is displayed by the fields, select the
whole document and then use Ctrl+Shift+F9. That will convert the data to
ordinary text. If you want to hide the display of field codes (toggle them
off), use Alt+F9. If you actually want to delete the fields (and their
contents) completely, run a macro containing the following code:

Dim i As Long
For i = ActiveDocument.Fields.Count To 1 Step -1
ActiveDocument.Fields(i).Delete
Next i

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
G

Greg Maxey

Elizabeth,

CTRL+a to select all and CTRL+SHIFT+F9 will turn all field codes results to
text.
 
G

Graham Mayor

In addition to the methods suggested, if you want to remove the fields
completely use Word's replace function to replace ^d with nothing.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
C

Charles Kenyon

The methods suggested won't get at fields in the headers and footers. If you
need to reach them, I would suggest first going into header/footer view and
Ctrl-A, Ctrl-Shift-F9 in each header and footer. That is, do it before
converting the body text because the header / footer may rely on the
existence of some field in the body of the document and may not come out
right if the underlying fields are converted first.

--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top