![]() 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. 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: 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.
0 Comments
Leave a Reply. |