ACC2000: "Invalid Use of Null" or "#Error" Error Message in Custom Function (210471)
The information in this article applies to:
This article was previously published under Q210471 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
A user-defined function may return one of the following error messages:
Run-time error '94':
Invalid use of Null
#Error
CAUSE
Null assumes a data type of Variant. You are trying to evaluate or assign Null to a non-Variant data type.
RESOLUTION
Make sure that variables contain valid data or define the variables as Variant. For example:
Dim MyVar As Variant
instead of
Dim MyVar As String
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kberrmsg kbprb kbProgramming KB210471 |
---|
|