Skip to content

Latest commit

 

History

History
101 lines (52 loc) · 1.91 KB

Project.projects.md

File metadata and controls

101 lines (52 loc) · 1.91 KB
title keywords f1_keywords ms.service ms.assetid ms.date ms.localizationpriority
Projects object (Project)
vbapj.chm131311
vbapj.chm131311
project-server
5a254428-f50d-e74f-dd31-5cdb260a4364
06/08/2017
medium

Projects object (Project)

Contains a collection of Project objects.

Example

Using the Project Object

Use Projects (Index), where Index is the project index number or project name, to return a single Project object. The following example switches among all the open projects, memorizes the full name of each, and then displays the results.

Dim Temp As Long, Names As String 

 

For Temp = 1 To Projects.Count 

 Projects(Temp).Activate 

 Names = Names & Projects(Temp).FullName & vbCrLf 

Next Temp 

 

MsgBox Names

Using the Projects Collection

Use the Projects property to return a Projects collection. The following example counts the number of open projects.

Application.Projects.Count

Because the Projects collection is a top-level object, the following example is functionally identical to the preceding one.

Projects.Count

Use the Add method to add a Project object to the Projects collection. The following example creates a new project without prompting for project information.

Projects.Add False

Methods

Name
Add
CanCheckOut
CheckOut

Properties

Name
Application
Count
Item
Parent

See also

Project Object Model

[!includeSupport and feedback]