Article ID: 142293
Article Last Modified on 12/9/2003
Debug.Print ABS(Number := -5)Because the ABS function is implemented in two places, and because Visual Basic uses the internal version by default, the above line of code generates the error: The use of the VBA version of the function (as well as of named arguments) can be forced by explicitly referencing the VBA type library in the call to the function or subroutine. For example, the following works properly:
Debug.Print VBA.ABS(Number := -5)In this case the function used resides in the type library.
Additional query words: 4.00 vb4win vb4all vba
Keywords: KB142293