S
Shinya
Dear all,
In my word addin I have set up word.application variable like this.
I declared one in global so that all function get access to worddoc
and the other one in connect class module to impliment event handler.
'Global variable in Module(wordGlobal.bas)
Public wordDoc As New Word.Application
'Class Module(Connect.cls)
Dim withEvents wordDocEvent as Word.application
inside of "IDTExtensibility2_OnConnection" function
I set Application object to both of them
If Application = "Microsoft Word" Then
Set wordDoc = Application
Set wordDocEvent = Application
End If
Is there any way to put this two object(Word.Application) in one to make it
simple.
or I am doing something weired?
Shinya
In my word addin I have set up word.application variable like this.
I declared one in global so that all function get access to worddoc
and the other one in connect class module to impliment event handler.
'Global variable in Module(wordGlobal.bas)
Public wordDoc As New Word.Application
'Class Module(Connect.cls)
Dim withEvents wordDocEvent as Word.application
inside of "IDTExtensibility2_OnConnection" function
I set Application object to both of them
If Application = "Microsoft Word" Then
Set wordDoc = Application
Set wordDocEvent = Application
End If
Is there any way to put this two object(Word.Application) in one to make it
simple.
or I am doing something weired?
Shinya