Field codes will work on all versions of Word, for both Windows and Mac.
If you copy the formula from this article and paste it into your document, Word will most likely add spaces at each end, which will cause the field code to not work. Type it out yourself for best results.
Using the overline effect will most likely skew your line spacing, so be sure to review your whole document to see if anything was affected.
If your code disappears, press Shift + F9 to toggle it back to the code view. You can then review your code and make any necessary changes. [1] X Research source
To insert an equation, click the Insert tab. Click the Equation button in the Symbols section. If you are using Word 2003 or XP, click Insert → Object → Microsoft Equation 3. 0.