Skip to content

Latest commit

 

History

History
64 lines (38 loc) · 1.29 KB

Project.Projects.CheckOut.md

File metadata and controls

64 lines (38 loc) · 1.29 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Projects.CheckOut method (Project)
vbapj.chm132593
vbapj.chm132593
project-server
Project.Projects.CheckOut
2de8fef7-150b-4f67-4677-507f5d2a258f
06/08/2017
medium

Projects.CheckOut method (Project)

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

Name Required/Optional Data type Description
FileName Required String The 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

Projects Collection Object

[!includeSupport and feedback]