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. All field codes in the whole document are converted to plain text. Please click Yes to start the operation.ģ.
After clicking Convert Field Codes to text, there will be a prompt box showing up to remind you the conversion. Please apply this utility by clicking Kutools > More > Convert Field Codes to Text. Kutools for Word, a handy add-in, includes groups of tools to ease your work and enhance your ability of processing word document. docx file created in Word for Mac 2011 (which I am stuck with).
Field codes in word for mac 2011 code#
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. I would like to display code snippets (created in R) in a. Note: With this VBA code, you cannot convert field codes to text from a selection of the document.Ĭonvert filed codes to text with Kutools for Word VBA 2: Convert the field codes to text in the original document MyString = MyString & vbCr & Selection.Fields(1).Code.TextĪ MyString VBA 1: Create a new Word document to save the converted field codes:ĭim MyString As String, FieldShowSetting As Boolean Note: The below VBA codes can cause two different results, you can choose to use by your own needs. The VBA code on converting field codes to text: Click again, and the results of the field codes are instead displayed.1: Press Alt+F11 to open the Microsoft Visual Basic for Applications window Ģ: Click Module from Insert tab, copy and paste the following VBA code into the Module window ģ: Click Run button or press F5 to apply the VBA. Uncheck the box next to the MathType Commands item. Word for Mac, open Templates and Add-Ins from the Tools menu. To remove them permanently, quit Word and remove the MathType commands from Word's startup folder. Now, click on the new icon to see your field coding. In the Manage box, click Templates, and then click Go.
In the list of Categories, select Commands Not in the Ribbon.The Quick Access Toolbar area of the Word Options dialog box. At the left of the dialog box click Customize (Word 2007) or Quick Access Toolbar (Word 2010, Word 2013, Word 2016).In Word 2010 and later versions display the File tab of the ribbon and then click Options.) (In Word 2007 click the Office button and then click Word Options. You can add a tool to the Quick Access Toolbar that toggles between field codes and field results. However, what if you are mouse-bound, and want to accomplish the same task quickly without resorting to the keyboard? You may even know that you can use Alt+F9 to switch between field codes and their results. You know you can use the Field Codes check box on the View tab of the Options dialog box to control whether or not field codes are displayed in your document.