Share via


CanCheckOut Method

True if Project can check out a specified project from Windows SharePoint Services.

Syntax

expression.CanCheckOut(FileName)

*expression   *     Required. An expression that returns a Projects object.

FileName    Required String. The name of the file to check out.

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

End Sub

Applies to | Project Object, Projects Collection Object

See Also | CanCheckIn Property | CheckIn Method | CheckOut Method | DocumentLibraryVersions Property | DocumentLibraryVersionsDialog Method