Hi,
can someone let me know why, when I open my word application from
a JavaScript that the AutoExec ( or any events ) are not fired?
However when I open the application manually ( by double clicking )
the events are fired without a problem.
I have my events in the normal.dot template.
My Source is
<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub Btn1_onclick()
call OpenDoc()
End Sub
Sub OpenDoc()
Set objWord = CreateObject("Word.Application"
objWord.Visible = true
objWord.Documents.Add
End Sub
</SCRIPT>
<TITLE>Launch Word</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Word Doc">
</BODY>
</HTML>
In normal.dot
Sub AutoExec()
Set MyApp.App = Word.Application
MsgBox "AutoExec"
End Sub
thansk in advance.
can someone let me know why, when I open my word application from
a JavaScript that the AutoExec ( or any events ) are not fired?
However when I open the application manually ( by double clicking )
the events are fired without a problem.
I have my events in the normal.dot template.
My Source is
<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub Btn1_onclick()
call OpenDoc()
End Sub
Sub OpenDoc()
Set objWord = CreateObject("Word.Application"
objWord.Visible = true
objWord.Documents.Add
End Sub
</SCRIPT>
<TITLE>Launch Word</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Word Doc">
</BODY>
</HTML>
In normal.dot
Sub AutoExec()
Set MyApp.App = Word.Application
MsgBox "AutoExec"
End Sub
thansk in advance.