A
Alan Silver
Hello,
I have written some VBA code that lives in the Document_Close event
handler. I put this in a template, so any document started from that
template should call the code when the document is closed.
This works fine on my machine, but when I put the template on my
client's machine, the event never fires. The document closes, but the
code is not called. I tried opening a new document from the template,
then putting a MsgBox in the Document_Close event handler for that
document, but that never fired either.
I tried this on another machine in his office and it worked fine there.
My machine is running NT4 (although I tested on a W2K machine here as
well) with Office 97. The machines in his office are running XP Pro. I
tried it there on Office 2000, 2002 and 2003. The same thing happened
(or rather didn't happen) with all three versions on his machine. The
other machine there where it worked was running Office 2002 (I think,
forgot to check).
Any ideas ? TIA
I have written some VBA code that lives in the Document_Close event
handler. I put this in a template, so any document started from that
template should call the code when the document is closed.
This works fine on my machine, but when I put the template on my
client's machine, the event never fires. The document closes, but the
code is not called. I tried opening a new document from the template,
then putting a MsgBox in the Document_Close event handler for that
document, but that never fired either.
I tried this on another machine in his office and it worked fine there.
My machine is running NT4 (although I tested on a W2K machine here as
well) with Office 97. The machines in his office are running XP Pro. I
tried it there on Office 2000, 2002 and 2003. The same thing happened
(or rather didn't happen) with all three versions on his machine. The
other machine there where it worked was running Office 2002 (I think,
forgot to check).
Any ideas ? TIA