Remove Field Codes From Text Microsoft Word Mac

How to quickly convert field codes to plain text in Word

If you have encountered a problem of converting field codes to plant text, this tutorials will help you.

Recommended Productivity Tools for Word

More Than 100 Powerful Advanced Features for Word, Save 50% Of Your Time.

Bring Tabbed Editing And Browsing To Office (Include Word), Far More Powerful Than The Browser's Tabs.

Convert filed codes to text with VBA

For more information about how to set up XML mapping, see the section New Word 2013 content control object model members later in this topic. Supporting repeating content. In addition to visualization enhancements and support for XML mapping to rich text content controls, Word 2013 also adds a new content control that enables you to repeat content. This works all around your Mac, too, so you can try it out in TextEdit, Pages, and so on! Paste and Match Formatting in Microsoft Word. Unfortunately for the sake of consistency, Microsoft Word.

Amazing! Use Efficient Tabs in Word (Office) like Chrome, Firefox and New Internet Explorer!

1: Press Alt+F11 to open the Microsoft Visual Basic for Applications window;

2: Click Module from Insert tab, copy and paste the following VBA code into the Module window;

3: Click Run button or press F5 to apply the VBA.

The VBA code on converting field codes to text:

Note: The below VBA codes can cause two different results, you can choose to use by your own needs.

VBA 1: Create a new Word document to save the converted field codes:

Sub fieldcodetotext ()
Dim MyString As String, FieldShowSetting As Boolean
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: Convert the field codes to text 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

Note: With this VBA code, you cannot convert field codes to text from a selection of the document.

Convert filed codes to text with Kutools for Word

Get rid of these annoying VBA codes, Kutools for Word's Convert Field Codes to Text utility can help you quickly convert field codes to text not only from the whole document but also from the selected part of the document.

Kutools for Word, a handy add-in, includes groups of tools to ease your work and enhance your ability of processing word document. Free Trial for 45 days! Get It Now!

1. Please apply this utility by clicking Kutools > More > Convert Field Codes to Text. See screenshot:

2. After clicking Convert Field Codes to text, there will be a prompt box showing up to remind you the conversion. Please click Yes to start the operation.

3. All field codes in the whole document are converted to plain text. See screenshot:

Note: If you just want to convert field codes to text from the selected part of the document, please select the field codes range and then applying this utility.

Relative articles:

Recommended Word Productivity Tools

Kutools For Word - More Than 100 Advanced Features For Word, Save Your 50% Time

  • Complicated and repeated operations can be done one-time processing in seconds.
  • Insert multiple images across folders into Word document at once.
  • Merge and combine multiple Word files across folders into one with your desired order.
  • Split the current document into separate documents according to heading, section break or other criteria.
  • Convert files between Doc and Docx, Docx and PDF, collection of tools for common conversions and selection, and so on...
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    You did a great job,
    I tried one-day to get text results but no result.
    Thanks for code.
  • To post as a guest, your comment is unpublished.
    If you want to convert all field codes to text, select your whole document with CTRL+A, then press CTRL+SHIFT+F9
    • To post as a guest, your comment is unpublished.
      This may work for field codes within the body of a document, but will not work on field codes within a table (e.g., a table of cross references to various locations within a document).

How to quickly convert field codes to plain text in Word

If you have encountered a problem of converting field codes to plant text, this tutorials will help you.

Recommended Productivity Tools for Word

More Than 100 Powerful Advanced Features for Word, Save 50% Of Your Time.

Bring Tabbed Editing And Browsing To Office (Include Word), Far More Powerful Than The Browser's Tabs.

Word Document Field Codes

Convert filed codes to text with VBA

Amazing! Use Efficient Tabs in Word (Office) like Chrome, Firefox and New Internet Explorer!

1: Press Alt+F11 to open the Microsoft Visual Basic for Applications window;

2: Click Module from Insert tab, copy and paste the following VBA code into the Module window;

3: Click Run button or press F5 to apply the VBA.

The VBA code on converting field codes to text:

Note: The below VBA codes can cause two different results, you can choose to use by your own needs.

VBA 1: Create a new Word document to save the converted field codes:

Sub fieldcodetotext ()
Dim MyString As String, FieldShowSetting As Boolean
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: Convert the field codes to text 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

Note: With this VBA code, you cannot convert field codes to text from a selection of the document.

Convert filed codes to text with Kutools for Word

Get rid of these annoying VBA codes, Kutools for Word's Convert Field Codes to Text utility can help you quickly convert field codes to text not only from the whole document but also from the selected part of the document.

Kutools for Word, a handy add-in, includes groups of tools to ease your work and enhance your ability of processing word document. Free Trial for 45 days! Get It Now!

1. Please apply this utility by clicking Kutools > More > Convert Field Codes to Text. See screenshot:

2. After clicking Convert Field Codes to text, there will be a prompt box showing up to remind you the conversion. Please click Yes to start the operation.

Text

3. All field codes in the whole document are converted to plain text. See screenshot:

Note: If you just want to convert field codes to text from the selected part of the document, please select the field codes range and then applying this utility.

Relative articles:

Recommended Word Productivity Tools

Remove Field Codes From Text Microsoft Word Mac Word

Kutools For Word - More Than 100 Advanced Features For Word, Save Your 50% Time

Microsoft Word Custom Fields

  • Complicated and repeated operations can be done one-time processing in seconds.
  • Insert multiple images across folders into Word document at once.
  • Merge and combine multiple Word files across folders into one with your desired order.
  • Split the current document into separate documents according to heading, section break or other criteria.
  • Convert files between Doc and Docx, Docx and PDF, collection of tools for common conversions and selection, and so on...

Remove Field Codes From Text Microsoft Word Mac

or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Mac Word Remove Field Codes

  • To post as a guest, your comment is unpublished.
    You did a great job,
    I tried one-day to get text results but no result.
    Thanks for code.
  • To post as a guest, your comment is unpublished.
    If you want to convert all field codes to text, select your whole document with CTRL+A, then press CTRL+SHIFT+F9
    • To post as a guest, your comment is unpublished.
      This may work for field codes within the body of a document, but will not work on field codes within a table (e.g., a table of cross references to various locations within a document).