title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Resource.Availabilities property (Project) |
vbapj.chm131411 |
|
project-server |
|
1525ba2e-49c1-216a-0b45-008e866163d5 |
06/08/2017 |
medium |
Returns an Availabilities collection representing all the available periods defined for the resource in the Resource Availability grid. Read-only Availabilities.
expression. Availabilities
expression A variable that represents a Resource object.
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.
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]