I would like to have a function that returns either an object or a null.
How do I code the function's return value if I find an object
GetSomeObject = objectFound
or
set GetSomeObject = objectFound
How do I code the functions's return value if there is no object and I want to return a null?
How do I get the return value?
returnedValue = GetSomeObject
or
set returnedValue = GetSomeObject