title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Application.DurationValue method (Project) |
project-server |
|
745acbd3-600c-1179-1d61-be0dab88cdf5 |
06/08/2017 |
medium |
Returns the number of minutes in a duration.
expression. DurationValue
( _Duration_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Duration | Required | String | The duration to be expressed in minutes. |
Variant
The following example adds the entered value to the duration of the selected task.
Sub DurationAdder()
Dim Temp As String
Temp = InputBox$("Enter amount by which to increase the duration:")
ActiveCell.Task.Duration = ActiveCell.Task.Duration + DurationValue(Temp)
End Sub
[!includeSupport and feedback]