M
Minnow
It tells me a runtion error "5" and the debugger highlighted the line "If
u="L" then".
Function LitersProcessed(ByVal u As String, ByVal r1 As Double, ByVal r2 As
Double) As Double
Dim lp As Double
If u = "L" Then
lp = r2 - r1
Else
lp = HourToLiter(r2 - r1)
End If
LitersProcessed = lp
End Function
u="L" then".
Function LitersProcessed(ByVal u As String, ByVal r1 As Double, ByVal r2 As
Double) As Double
Dim lp As Double
If u = "L" Then
lp = r2 - r1
Else
lp = HourToLiter(r2 - r1)
End If
LitersProcessed = lp
End Function