Excel: Returning a Horizontal Array from a Function MacroLast reviewed: November 29, 1994Article ID: Q62278 |
The information in this article applies to:
SUMMARYWhen a function macro computes more than one value, the computed values may be returned as an array. Because of function macro limitations and the strict order of calculation followed for macro sheets, it is difficult to arrange computed values horizontally. This can be done with multiple GOTO statements in the macro, but it is more convenient to return the values as a vertical array. A sample RETURN statement might appear as follows:
=RETURN(A12:A15)On the worksheet, however, it is sometimes desirable to horizontally enter the results computed by a function macro. This can be done with the TRANSPOSE function as follows:
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |