Subscribe to Windows IT Pro
November 28, 2005 12:00 AM

Why Doesn't the Document_Close Event Handler Run?

Windows IT Pro
InstantDoc ID #48274
Rating: (0)

A Word document saved directly in a public folder or attached to a post in a folder doesn't run its Document_Close procedure when the save occurs. How can I make that macro work?

Technically, Document_Close is an event handler, not a macro. A macro is a Public Sub procedure in Visual Basic for Applications (VBA) and has no arguments. In your scenario, there's a big difference between the two. As long as the security settings in Microsoft Word (Tools, Macro, Security) are set to allow macros to run, true macros will work just fine. You can invoke them with the Alt+F8 command or add them to the toolbar. But as far as I can tell, event handlers don't fire in documents that are stored in Outlook or Exchange folders, probably as a security measure.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.