Adamski
05-13-2010, 06:17 AM
Hi,
In a word template I have created a Class called "ThisApplication". It has a boolean property called "DisableEvents".
How/Can I set the "DisableEvents" property of my Class from Excel?
ThisDocument Code
Option Explicit
Dim WordApplication As ThisApplication
Private Sub Document_New()
' Assign WordApplication to the ThisApplication class
Set WordApplication = New ThisApplication
End Sub
ThisApplication Code
Option Explicit
Public DisableEvents As Boolean
In a word template I have created a Class called "ThisApplication". It has a boolean property called "DisableEvents".
How/Can I set the "DisableEvents" property of my Class from Excel?
ThisDocument Code
Option Explicit
Dim WordApplication As ThisApplication
Private Sub Document_New()
' Assign WordApplication to the ThisApplication class
Set WordApplication = New ThisApplication
End Sub
ThisApplication Code
Option Explicit
Public DisableEvents As Boolean