R
richardconers
something went wrong on my earlier post about AutoExec, so I'm
repeating it. I've using Word XP and I'm trying to initialize the
application object that is in a class module. When I manually run the
initialization procedure, everything is fine. But I can't get
AutoExec to execute. So I ran some variations on AutoExec and nothing
worked.
Here's what I've tried to test making an AutoExec work:
In a regular module in the Normal template, I've got a module named
"AutoExec" and a procedure called Main:
Public Function Main()
MsgBox "autoexec works"
End Function
it didn't work.
I deleted that "AutoExec" module and then in another regular module I
have this code:
Public Function autoexec()
MsgBox "autoexec works"
End Function
it didn't work.
Then i tried a startup switch in the Run menu of Windows :
"C:\Program Files\Microsoft Office\Office10\WINWORD.EXE/mautoexec"
It didn't work. I got an error saying that Windows couldn't find the
path.
Anything else I can try????
Thanks!!!!!!
repeating it. I've using Word XP and I'm trying to initialize the
application object that is in a class module. When I manually run the
initialization procedure, everything is fine. But I can't get
AutoExec to execute. So I ran some variations on AutoExec and nothing
worked.
Here's what I've tried to test making an AutoExec work:
In a regular module in the Normal template, I've got a module named
"AutoExec" and a procedure called Main:
Public Function Main()
MsgBox "autoexec works"
End Function
it didn't work.
I deleted that "AutoExec" module and then in another regular module I
have this code:
Public Function autoexec()
MsgBox "autoexec works"
End Function
it didn't work.
Then i tried a startup switch in the Run menu of Windows :
"C:\Program Files\Microsoft Office\Office10\WINWORD.EXE/mautoexec"
It didn't work. I got an error saying that Windows couldn't find the
path.
Anything else I can try????
Thanks!!!!!!