Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MS Word Application Event Not working

66 views
Skip to first unread message

DMUM

unread,
Mar 18, 2012, 8:03:56 PM3/18/12
to
HI, PLEASE PLEASE anyone, I really need help with this!

I created some code using this example:

http://word.mvps.org/faqs/macrosvba/AppClassEvents.htm

Instead of using the Quit event they use, I am using the DocumentBeforeSave Event.

However it is not working. Just in case it will help here is my code:

In Module

option Explixit

Dim oAppClass As New ThisApplication

Public Sub AutoExec()
Set oAppClass.oApp = Word.Application
End Sub

------------------------------------------------------------------------------
-
In a class module called ThisApplication:

Option Explicit

Public Sub oApp_DocumentBeforeSave(ByVal Doc As Document, SaveAs UI As
Boolean, Cancel As Boolean)

Call EditingMacroComments

Sub EditingMacroComments()

End Sub
-----------------------------END CODE-----------------------


0 new messages