View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Prof Wonmug Prof Wonmug is offline
external usenet poster
 
Posts: 61
Default Does IsMissing only work with Variants?

If I code a Function statement

Function Temp(Optional abc As Single)

then calling the function with no arguments

=temp()

[abc] gets assigned the value "0" and the IsMissing(abc) test always
fails. If I change the Function statement to

Function Temp(Optional abc)

then everything works.

Is there no way to have an optional numeric argument and be able to
assign the default in the function?