How to Show Field Codes in Word Document – using VBA

Word VBA – Show Field Codes

Here is a simple way to show the field codes in Word

Sub Show_Field_Codes()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Application.ActiveWindow.View.ShowFieldCodes = True

End Sub