As previously mentioned, VBA functions (unlike subroutines) return a value. The return values have the following rules:.
www.excelfunctions.net