Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.UndoCheckOut Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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
© 2018 Microsoft