CheckOut Method
As it applies to the Application object.
Checks out the active project file if it is stored in Windows SharePoint Services.
Syntax
expression.CheckOut()
*expression * Required. An expression that returns an Application object.
As it applies to the Projects object.
Performs a checkout of the specified file name on the Windows SharePoint Services server.
Syntax
expression.CheckOut(FileName)
*expression * Required. An expression that returns a Projects object.
FileName Required String. The name of the file to check out.
Example
As it applies to the Projects object.
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 | Application Object | Project Object, Projects Collection Object
See Also | CanCheckIn Property | CanCheckOut Method | CheckIn Method | DocumentLibraryVersions Property | DocumentLibraryVersionsDialog Method