How to quickly convert field codes to text in Word
If you need to convert field codes to plain text in Word, this tutorial will guide you through different methods depending on your needs. The first method converts field codes to their displayed values, preserving only the visible content. The other two methods retain the field codes as text, displaying them in their raw format, such as { SEQ Table \* ARABIC }.
Convert field codes to displayed values with a shortcut
Convert field codes to text with Kutools for Word
Convert field codes to text with VBA
Recommended Productivity Tools for Word
Kutools for Word: Integrating AI π€, over 100 advanced features save 50% of your document handling time.Free Download
Office Tab: Introduces the browser-like tabs to Word (and other Office tools), simplifying multi-document navigation.Free Download
Convert field codes to plain text with a shortcut
If you only need to remove the field functionality while keeping the displayed values, you can use a simple shortcut:
- Select the entire document by pressing Ctrl + A. Tip: If you want to convert field codes in a specific range, select only that portion instead of the entire document.
- Press Ctrl + Shift + F9 to convert all fields to their displayed values.
Note: This method keeps only the current field values. If you need to retain the field codes as text, displaying them in their raw format, such as { SEQ Table \* ARABIC }, use the methods below.
Convert field codes to text with Kutools for Word
Kutools for Word provides a simple way to convert field codes to text, either from the whole document or a selected portion.
- If you want to convert field codes to text within a specific range, first select the range, then click Kutools > Convert > Convert Field Codes to Text.
- If you want to convert field codes in the entire document, simply apply the feature by clicking Kutools > Convert > Convert Field Codes to Text without selecting anything in the document. A prompt box will then appear asking for confirmation. Click Yes to proceed.
All field codes in the selected range or within the entire document will be converted to plain text.
![]() | >>> | ![]() |
Click here for more details about Kutools for Word's Convert Field Codes to Text.
Convert field codes to text with VBA
VBA offers a powerful way to handle field codes in Word documents. Depending on the script used, you can either extract all field codes and save them as text in a new document or replace the field codes in the original document with their actual code representation (e.g., { SEQ Table \* ARABIC }).
- Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
- Click Module from the Insert tab, then copy and paste one of the following VBA codes into the module window.
Note: The VBA codes below provide two different outcomes. Choose the one that suits your needs.
VBA 1: Extract field codes and save them in a new Word document
Sub fieldcodetotext() Dim MyString As String For Each aField In ActiveDocument.Fields aField.Select MyString = MyString & vbCr & Selection.Fields(1).Code.Text Next aField Documents.Add ActiveDocument.Content.InsertAfter MyString End Sub
VBA 2: Replace field codes with their code representation in the original document
Sub fieldcodetotext() Dim MyString As String ActiveWindow.View.ShowFieldCodes = True For Each aField In ActiveDocument.Fields aField.Select MyString = "{ " & Selection.Fields(1).Code.Text & " }" Selection.Text = MyString Next aField ActiveWindow.View.ShowFieldCodes = False End Sub
- Click the Run button
or press F5 to execute the VBA.
Note: This VBA method does not work on selected portions of the document; it applies to the entire document.
Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...![]() |
Enhance your workflow now. Learn More about Office Tab Free Download |
Related articles:
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...
π Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...
β Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
π§Ή Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
β Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...
π Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...
β Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...
π Supports 40+ Languages: Use Kutools in your preferred language β supports English, Spanish, German, French, Chinese, and 40+ others!

β¨ Kutools for Office β One Installation, Five Powerful Tools!
Includes Office Tab Pro Β· Kutools for Excel Β· Kutools for Outlook Β· Kutools for Word Β· Kutools for PowerPoint
π¦ Get all 5 tools in one suite | π Seamless integration with Microsoft Office | β‘ Save time and boost productivity instantly
Best Office Productivity Tools
Kutools for Word - 100+ Tools for Word
- π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish / Super Translate / AI Redaction / AI Proofread
- π Document Mastery: Split Pages / Merge Documents / Batch Convert to PDF
- β Contents Editing: Batch Find and Replace / Resize All Pictures
- π§Ή Effortless Clean: Remove Extra Spaces / Remove Section Breaks
- β Creative Inserts: Insert Thousand Separators / Insert Check Boxes / Create QR Codes
- π Supports 40+ Languages: Kutools speaks your language β 40+ languages supported!