Description | Excel 2003 | Excel 2007 |
---|---|---|
Maximum length of a function name | 249 | 249 |
Maximum arguments to an add-in function | 30 | 255 |
Maximum length of an argument name | 255 | 255 |
Maximum number of characters in an add-in function’s argument list (including commas | 245 | Unlimited |
Maximum number of argument descriptions for an add-in function | 20 | 245 |
Although it is possible to have an argument with 255 characters in its name, it is not a good idea. In addition, other constraints apply under Excel 2003 and below.
Since a function under Excel 2003 and below can take at most 30 arguments, and since only 20 of these arguments can have descriptions, the following rules are applied by the XLL Plus library.
Arguments | Action |
---|---|
20 or less | All arguments have descriptions |
21 to 30 | Descriptions are available for arguments 1 to 19. All descriptions for arguments from argument 20 onwards contain the text "No description available". |
The Function Wizard issues warnings when any of the limits above are violated.
Array sizes are ultimately limited by the size of Excel worksheets, but other limits also apply.
Description | Excel 2003 | Excel 2007 |
---|---|---|
Maximum columns in a range | 256 | 16384 |
Maximum rows in a range (Excel 95) | 16384 | |
Maximum rows in a range (Excel 97 and above) | 65536 | 1048576 |
Maximum number of cells passed in a CXlOper from Excel to an add-in function (Excel 95) | 5458 | |
Maximum number of rows passed in a COper from Excel to an add-in function (Excel 95) | 5458 / number of columns | |
Maximum number of cells passed in a COper from Excel to an add-in function (Excel 97 and above) | 16777216 | 17179869184 |
Maximum number of rows passed in a COper from Excel to an add-in function (Excel 97 and above) | 65535 More... | 1048575 |
See also Comparison of CXlOper and CXlArray.
Strings under Excel 2003 and below can contain at most 255 8-bit characters.
Strings under Excel 2007 and above can contain at most 32767 16-bit characters.