"Code" is the wrong word. You want a "field", specifically a PrintDate
field. This can be inserted anywhere in the document, typically in a footer
(so it appears on every page).
Put the cursor where you want the date to appear. Go to the Insert > Field
dialog. Select PrintDate from the list, select the date format you want, and
click OK.
The date this field shows is the same one you'll see if you go to File >
Properties > Statistics and look at the "Printed" line. If that's blank --
as it sometimes is, even after printing -- the field will show zeros. I
don't know of any way to force Word to save that information 100% reliably.
An alternative is the SaveDate field, which works the same way but shows the
date the document was last saved. This is more reliably updated than the
PrintDate, but may not be what you want.
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.