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

Projects.CheckOut Method (Project)

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

Checks out the specified file if it is stored in a SharePoint document library.

Syntax

expression. CheckOut( ** Filename** )

expression A variable that represents a Projects object.

Parameters

NameRequired/OptionalData TypeDescription
FilenameRequiredStringThe name of the file to check out.

Return Value

Boolean

Example

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

Sub CheckOutProject(docCheckOut As String)  

 ' Determine whether 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  

End Sub

See also

Concepts

Projects Collection Object

© 2018 Microsoft