DrawingControl.DocumentSavedAs event (Visio)
Occurs after a document is saved by using the Save As command.
expression A variable that represents a DrawingControl object.
|doc||Required||[IVDOCUMENT]||The document that was saved.|
The DocumentSavedAs event is one of a group of events for which the EventInfo property of the Application object contains extra information.
If the DocumentSavedAs event is fired because a save was initiated by a user or a program, the EventInfo property returns the following string:
If it fires because Microsoft Visio is saving a copy of an open file (for autorecovery or to include as a mail attachment), the EventInfo property returns one of the following strings:
If the event is fired for autorecovery purposes, the name of a recovery file in this format:
If the event is fired because a document copy is being made to send as a mail attachment, the name of an attachment file in this format:
If you are using Microsoft Visual Basic or Visual Basic for Applications (VBA), the syntax in this topic describes a common, efficient way to handle events.
To create an Event object that runs an add-on, use the Add method as it applies to the EventList collection.
To create an Event object that receives notification, use the AddAdvise method.
To find an event code for the event that you want to create, see Event codes.
If you are handling this event from a program that receives a notification over a connection created by using the AddAdvise method, the varMoreInfo argument to VisEventProc designates the document index:
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.