Düzenle

Aracılığıyla paylaş


Document.UndoCheckOut method (Visio)

Closes a Microsoft Visio document checked out from a Microsoft SharePoint Server site, deletes the local copy of the document, discarding any changes, undoes the checkout, and then reopens the document.

Syntax

expression.UndoCheckOut

expression An expression that returns a Document object.

Return value

Nothing

Remarks

Calling the UndoCheckOut method is the equivalent of clicking Discard Check Out on the Check In drop-down menu (click the File tab, and then click Info).

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the UndoCheckOut method to undo the checkout of the active document from a SharePoint server. Before running this macro, check out a Visio document from a SharePoint Server site.

Public Sub UndoCheckOut_Example 
    Visio.ActiveDocument.UndoCheckOut 
End Sub

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.