Application.CheckOut method (Project)

Checks out the active project file if it is stored in a SharePoint library.

Syntax

expression. CheckOut

expression A variable that represents an Application object.

Return value

Boolean

Example

This example verifies that a project is not checked out by another user and can be checked out. If the project can be checked out, it copies the project to the local computer for editing.

Sub CheckOutProject(docCheckOut As String) 
 
 ' Determine if project can be checked out. 
 If Projects.CanCheckOut(docCheckOut) = True Then 
 Projects.CheckOut docCheckOut 
 Else 
 MsgBox "Unable to check out this project at this time." 
 End If 

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.