I really don\'t know the syntax of the DocumentBeforeClose event. Following this page, I should create a class module called \'EventClassModule\' (see also this article). So I d
X is an instance of the class you created (EventClassModule)
X
EventClassModule
Your problem is that .App is not a property of EventClassModule. Change
.App
Set X.App = Word.Application
to the property you defined in your class
Set X.appWord = Word.Application