Resource.Availabilities Property

Project Developer Reference

Returns an Availabilities collection representing all the lines for the specified resource from the Resource Availability grid. Read-only Object.

Syntax

expression.Availabilities

expression    A variable that represents a Resource object.

Return Value
Availabilities

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
This example displays the range of dates during which the specified resource is available for work.

Visual Basic for Applications
  
          Sub ShowWorkAvail()
          Dim Avail As Availability
      For Each Avail In ActiveProject.Resources("Tom").<strong class="bterm">Availabilities</strong>
      MsgBox "From " &amp; Avail.AvailableFrom &amp; " to " &amp; Avail.AvailableTo
      Next Avail
      End Sub
    </code>

See Also