Signature (Visual Basic / VBA)
Public Function AverageReadingTime( _
ByVal vPhrase As Variant _
, Optional ByVal vWordsPerMinute As Variant _
, Optional ByVal vNewLinesPerSecond As Variant _
) As Variant
Code Example
AverageReadingTime(Gettysburg) = 72.35
AverageReadingTime(Mayflower) = 75.6
AverageReadingTime(WrapText(Mayflower, 60)) = 88.8
Parameters
| Parameter | Description |
|---|---|
| vPhrase | String containing text whose average human reading time is to be calculated. Function returns Null if vPhrase is Null or cannot be fixed up to a String. |
| vWordsPerMinute | The number of words per minute to use within the calculation. vWordsPerMinute defaults to 200 if it is missing or Null or cannot be fixed up to a number. |
| vNewLinesPerSecond | The number of new line which can be read per second of time. vNewLinesPerSecond defaults to 2 if it is missing or Null or cannot be fixed up to a number. |