The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you use any of the following Analysis ToolPak functions in a Visual Basic module
CAUSEYou receive this error message when you use any of the above functions with less than 29 arguments. This error message indicates that you have omitted a required argument for the function. The functions GCD(), LCM(), MULTINOMIAL(), and IMPRODUCT() should accept from 1 up to 29 arguments to return a value. However, these functions require all 29 arguments. WORKAROUND
To avoid receiving this error message when you use one of these functions
in a Visual Basic procedure, you can use the ExecuteExcel4Macro method to
call these functions. To use this method, you must first open or load the
Analysis ToolPak add-in, (ANALYSIS.XLL). You can then use the following
example to access the LCM() function:
The following examples use the GCD(), IMPRODUCT(), and MULTINOMIAL()
functions using the ExecuteExcel4Macro method:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c. MORE INFORMATIONYou can use the functions provided in the Analysis ToolPak-Visual Basic for Applications add-in in a Visual Basic procedure by referencing the add-in file ATPVBAEN.XLA from within your module. For more information about using the Analysis ToolPak functions in a Visual Basic procedure, query on the following words in the Microsoft Knowledge Base: atpvbaen.xla and references and functions Additional query words: addins err msg
Keywords : xlwin |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |