R
RalphH
Hi;
Below is code for a UDF using an optional parameter. The code works
fine when I supply all the parameters.
for example =FTE(1827,26.1) gives a result of 1
However = FTE(1827) which also give 1 resultsin the error #value:
Function FTE(Hours, Optional Periods)
Application.Volatile
If IsMissing(Periods) Then
Periods = 26.1
End If
FTE = Hours / (Periods * 70)
End Function
any help appreciated.
Thanks
Below is code for a UDF using an optional parameter. The code works
fine when I supply all the parameters.
for example =FTE(1827,26.1) gives a result of 1
However = FTE(1827) which also give 1 resultsin the error #value:
Function FTE(Hours, Optional Periods)
Application.Volatile
If IsMissing(Periods) Then
Periods = 26.1
End If
FTE = Hours / (Periods * 70)
End Function
any help appreciated.
Thanks