Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.25 KB

Project.Resource.Availabilities.md

File metadata and controls

46 lines (30 loc) · 1.25 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Resource.Availabilities property (Project)
vbapj.chm131411
vbapj.chm131411
project-server
Project.Resource.Availabilities
1525ba2e-49c1-216a-0b45-008e866163d5
06/08/2017
medium

Resource.Availabilities property (Project)

Returns an Availabilities collection representing all the available periods defined for the resource in the Resource Availability grid. Read-only Availabilities.

Syntax

expression. Availabilities

expression A variable that represents a Resource object.

Remarks

The Availabilities property does not return any meaningful information for material resources. Setting a value returns a trappable error (error code 1101) when applied to material resources.

Example

The following example displays the range of dates during which the specified resource is available for work.

Sub ShowWorkAvail()
  Dim Avail As Availability
  For Each Avail In ActiveProject.Resources("Tom").Availabilities
    MsgBox "From " & Avail.AvailableFrom & " to " & Avail.AvailableTo
  Next Avail
End Sub

[!includeSupport and feedback]