Months.Count Property
Project Developer Reference |
Returns the number of items in the Months collection for the years 1984 - 2049. Read-only Integer.
Syntax
expression.Count
expression A variable that represents a Months object.
Return Value
Integer
Example
The following example in the Immediate window returns 12, the number of months in 2008. If you set the year to 1983 or 2050, the result is "Run-time error '1101'; the argument is not valid."
Visual Basic for Applications |
---|
|
The following example shows the use of the Count property for the Assignments object. It prompts the user for the name of a resource and then assigns that resource to tasks without any resources.
Visual Basic for Applications |
---|
|
See Also