Microsoft Knowledge Base |
|
XL: Using Mixed Data Types with ParamArray |
|
|
Last reviewed: June 19, 1997
Article ID: Q152761 |
|
The information in this article applies to:
SUMMARYParamArray can be used when passing arguments to a function. The ParamArray will accept an arbitrary number of arguments from the calling macro or formula and package them into an array of variants.
MORE INFORMATIONParamArray is used only as the last argument in a list of variables representing arguments that are passed to a procedure. It is used to indicate that the final argument is an optional array of Variant elements. The ParamArray keyword allows you to provide an arbitrary number of arguments, and it may not be used with Optional, ByRef, or ByVal Keywords.
Visual Basic Code ExampleMicrosoft provides examples of Visual Basic for Applications procedures for illustration only, without warranty either expressed or implied, including, but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft AnswerPoint Engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400. The following are examples of how to retrieve data when you use ParamArray.
REFERENCESFor more information about ParamArray in Microsoft Excel version 7.0, click Answer Wizard on the Help menu and type:
ParamArrayFor more information about ParamArray in Microsoft Excel version 5.0, choose the Search button in Help and type:
Paramarray |
|
Additional query words: 5.00 5.00a 5.00c 7.00
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |