Table of contents
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.


expression . UndoCheckOut

expression An expression that returns a Document object.

Return Value



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).


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