title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Projects.CanCheckOut method (Project) |
vbapj.chm132591 |
|
project-server |
|
330f28a3-d785-ae5d-0f64-8e02ac52d8d6 |
06/08/2017 |
medium |
Indicates whether Project can check out the specified project from a SharePoint document library.
expression. CanCheckOut
( _FileName_
)
expression A variable that represents a 'Projects' object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
FileName | Required | String | The name of the file to check out. |
Boolean
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 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
End Sub
[!includeSupport and feedback]