Use Microsoft Word 2010 to find and replace text, formatting, paragraph breaks, page breaks, and other items. You can extend your search by using wildcards and codes to find words or phrases that contain specific letters. Thus, if numbers appear but text and/or dates don’t, ensure the first record for that field has text or a date. Similarly, if text over 255 characters is being truncated, ensure the first record for that field contains more than 255 characters. By Dan Gookin. You can use the Replace command in Word 2013 to replace text and apply formatting or to replace one type of formatting with another. Suppose that you want to replace all instances of underlined text with italic.
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
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. Free text to speech for mac.
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
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
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 Your50% 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.
- 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
- 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).
WindowsmacOSWeb
- Go to Home > Replace or press Ctrl+H.
- Enter the word or phrase you want to locate in the Find box.
- Enter your new text in the Replace box.
- Select Find Next until you come to the word you want to update.
- Choose Replace. To update all instances at once, choose Replace All.
To specify only upper or lowercase in your search, select More > Match case.
For other options, see Find and replace text
Find and replace basic text
In the upper-right corner of the document, in the search box , type the word or phrase that you want to find, and Word will highlight all instances of the word or phrase throughout the document.
To replace found text:
- Select the magnifying glass, and then select Replace.
- In the Replace With box, type the replacement text.
- Select Replace All or Replace.Tips:
- You can also open the basic Find and Replace pane with the keyboard shortcut CONTROL + H.
- When you replace text, it's a good idea to select Replace instead of Replace All. That way you can review each item before replacing it.
Find text with specific formatting
You can find text with special formatting, such as bold or highlight, by using the Format menu.
- Select View > Navigation Pane.
- In the Navigation Pane, select the magnifying glass.
- Select Settings , and then select Advanced Find & Replace.Notes:
- Select the arrow at the bottom of the Find and Replace dialog box to show all options.
- On the Format menu, select the option that you want.If a second dialog box opens, select the options that you want, and then select OK.
- In the Find and Replace dialog box, select Find Next or Find All.
Find text with specific formatting and replace the formatting
You can find and replace text with special formatting, such as bold or highlight, by using the Format menu.
- Select View > Navigation Pane.
- In the Navigation Pane, select the magnifying glass.
- Select Settings , and then select Advanced Find & Replace.
- At the top of the dialog box, select Replace.Notes:
- Select the arrow at the bottom of the Find and Replace dialog box to show all options.
- On the Find what box, type the text that you want to find.
- On the Format menu, select the formatting that you want to find.If a second dialog box opens, select the options that you want, and then select OK.
- Select in the box next to Replace with.
- On the Format menu, select the replacement formatting. If a second dialog box appears, select the formats that you want, and then select OK.
- Select Replace, Replace All, or Find Next.
Word For Mac How To Replace
Find paragraph marks, page breaks, or other special characters
- Select View > Navigation Pane.
- In the Navigation Pane, select the magnifying glass.
- Select Settings , and then select Advanced Find & Replace.Notes:
- Select the arrow at the bottom of the Find and Replace dialog box to show all options.
- On the Special menu, select the special character that you want to find.
- Select Find Next.
Find and replace paragraph marks, page breaks, or other special characters
- Select View > Navigation Pane.
- In the Navigation Pane, select the magnifying glass.
- Select Settings , and then select Advanced Find & Replace.Notes:
- Select the arrow at the bottom of the Find and Replace dialog box to show all options.
- At the top of the Find and Replace dialog box, select Replace and then select in the Find What box, but don't type anything there. Later, when you select a special character, Word will automatically put the character code in the box for you.Note: Select the arrow at the bottom of the Find and Replace dialog box to show all options.
- On the Special menu, select the special character that you want to find.
- Select in the Replace with box.
- On the Special menu, select the special character that you want to use as a replacement.
- Select Replace or Find Next.
Use wildcard characters to find and replace text
- Select View > Navigation Pane.
- In the Navigation Pane, select the magnifying glass.
- Select Settings , and then select Advanced Find & Replace.
- Select the Use wildcards check box.If you don't see the Use wildcards check box, select .
- Select the Special menu, select a wildcard character, and then type any additional text in the Find what box.
- Select Find Next.Tips:
- To cancel a search in progress, press + PERIOD.
- You can also enter a wildcard character directly in the Find what box instead of selecting an item from the Special pop-up menu.
- To search for a character that's defined as a wildcard character, type a backslash () before the character. For example, type ? to find a question mark.
- You can use parentheses to group the wildcard characters and text and to indicate the order of evaluation. For example, search for <(pre)*(ed)> to find 'presorted' and 'prevented.'
- You can search for an expression and use the n wildcard character to replace the search string with the rearranged expression. For example, type (Newman) (Belinda) in the Find what box and 2 1 in the Replace with box. Word will find 'Newman Belinda' and replace it with 'Belinda Newman.'
- To replace found text:
- Select the Replace tab, and then select the Replace with box.
- Select Special, select a wildcard character, and then type any additional text in the Replace with box.
- Select Replace All, Replace, or Find Next.Tip: When you replace text, it's a good idea to select Replace instead of Replace All. That way you can confirm each replacement to make sure that it's correct.
Wildcard characters you can use
You can refine a search by using any of the following wildcard characters.
![Word for mac how to replace date field with text that contains Word for mac how to replace date field with text that contains](/uploads/1/2/6/2/126207373/996422259.jpg)
To find | Use this | For example |
---|---|---|
Any single character | ? | s?t finds 'sat' and 'set.' |
Any string of characters | * | s*d finds 'sad' and 'started.' |
One of the specified characters | [ ] | w[io]n finds 'win' and 'won.' |
Any single character in this range | [-] | [r-t]ight finds 'right' and 'sight' and 'tight.' Ranges must be in ascending order. |
Any single character except the characters inside the brackets | [!] | m[!a]st finds 'mist' and 'most' but not 'mast.' |
Age of empire iii for mac no text. Any single character except characters in the range inside the brackets | [!x-z] | t[!a-m]ck finds 'tock' and 'tuck' but not 'tack' or 'tick.' Ranges must be in ascending order. |
Exactly n occurrences of a character or expression | { n} | fe{2}d finds 'feed' but not 'fed.' |
At least n occurrences of a character or expression | { n,} | fe{1,}d finds 'fed' and 'feed.' |
A range of occurrences of a character or expression | { n, n} | 10{1,3} finds '10,' '100,' and '1000.' |
One or more occurrences of a character or expression | @ | lo@t finds 'lot' and 'loot.' |
The beginning of a word | Pro tools free for mac. < | <(inter) finds 'interesting' and 'intercept' but not 'splintered.' |
The end of a word | > | (in)> finds 'in' and 'within,' but not 'interesting.' |
Word For Mac How To Replace Date Field With Text That Contains
Word for the web lets you find and replace basic text. You can match case or fine whole words only. For more varied options, open your document in Word for the desktop.