Have you even read the tutorial? It contains nothing like the code you're trying to use. Aside from the fact Word doesn't have a DateDiff field function, your formula looks like something you've copied & pasted from Excel.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|