![]() |
|
#1
|
|||
|
|||
|
Using events with the Application object (Word) | Microsoft Learn
I have followed the steps declare object variable Public WithEvents App As Word.Application I have written an event: Private Sub App_DocumentChange() MsgBox "application change document app ran " End Sub I have written the declared object Dim X As New EventClassModule Sub Register_Event_Handler() Set X.App = Word.Application End Sub I do not understand how to Run the Register_Event_Handler procedure above. nothing seems to work |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Word 2017 + VSTO 2015 events | ArtKilp | Word VBA | 0 | 11-20-2018 08:57 AM |
| Running Calculations in MS Word | ha2014 | Word | 1 | 02-05-2014 05:03 PM |
Word 2003 Macro problem running in Word 2010
|
norwood | Word VBA | 2 | 02-03-2014 06:49 PM |
Backup Microsoft Outlook profile and calendar events and address book
|
zillah | Outlook | 1 | 08-20-2011 06:19 PM |
Does Word have an "Events log?
|
Balliol | Word | 1 | 05-26-2011 12:57 AM |