Word 2003 Error Handling

V

VBA Dabbler

It appears that Microsoft has changed how certain events are managed in
Office 2003, particularly in Word. Certain event-based functionality that
worked in previous versions no longer functions, specifically the
"Document_BeforeClose" event - this event had a "Cancel" parameter which
allowed you to conditionally cancel the close command. I'm trying to restore
this capability in Word 2003 but am having trouble with the different
approach.

I've read the Word 2003 online help regarding the "DocumentBeforeClose"
Event, followed their instructions, but still can't get the Event Procedures
to execute when a qualifying event occurs.

Does anyone know how to get the event handling to function with this new
approach?

Thanks,
VBA Dabbler
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?VkJBIERhYmJsZXI=?=,

Word has never had a Document_BeforeClose event. It has an application level
DocumentBeforeClose event, and that still has a "Cancel" parameter.

Then it has a document level Document_Close event that you use from within the
ThisDocument module, that has never had any parameters.

Are you trying to handle this through a .NET interface, by any chance? Is this
article relevant?
http://support.microsoft.com/default.aspx?scid=kb;en-us;830519
It appears that Microsoft has changed how certain events are managed in
Office 2003, particularly in Word. Certain event-based functionality that
worked in previous versions no longer functions, specifically the
"Document_BeforeClose" event - this event had a "Cancel" parameter which
allowed you to conditionally cancel the close command. I'm trying to restore
this capability in Word 2003 but am having trouble with the different
approach.

I've read the Word 2003 online help regarding the "DocumentBeforeClose"
Event, followed their instructions, but still can't get the Event Procedures
to execute when a qualifying event occurs.

Does anyone know how to get the event handling to function with this new
approach?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top