G
Guest
I cannot get the following function to work:
Function EarlySuccess(HatchSuccess, FledgeSuccess,FledgeSurvive) As Single
HatchSuccess = 1.5
FledgeSuccess = 0.78
FledgeSurvive = 0.43
EarlySuccess = HatchSuccess * FledgeSuccess * FledgeSurvive
End Function
I keep getting a compile error "Argument not optional". It also does not
matter if I define the parameters as Single within the Function ( ), or
as lines before the values are inputted.
I don't know what I am doing wrong.
Thanks,
LAF
Function EarlySuccess(HatchSuccess, FledgeSuccess,FledgeSurvive) As Single
HatchSuccess = 1.5
FledgeSuccess = 0.78
FledgeSurvive = 0.43
EarlySuccess = HatchSuccess * FledgeSuccess * FledgeSurvive
End Function
I keep getting a compile error "Argument not optional". It also does not
matter if I define the parameters as Single within the Function ( ), or
as lines before the values are inputted.
I don't know what I am doing wrong.
Thanks,
LAF