Hi Wayne,
Various things might be wrong. Since you haven't indicated whether you have
stepped through the program and seen what happens, it is hard to be sure
what the exact problem is.
The most likely problem is that you have put the code in the wrong place.
For this code to be called, it needs to be in the ThisDocument module of the
document, or of the document's attached template.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
> The follwing code works in excel but not in word?
> It basically checks the user name.
[quoted text clipped - 10 lines]
> Application.DisplayAlerts = True
> End Sub