Excel: SELECT.END Macro Example Is IncorrectLast reviewed: November 30, 1994Article ID: Q79246 |
SUMMARYThe macro example for SELECT.END on pages 212-213 in the "Microsoft Excel Function Reference" for version 3.0 does not work correctly. If the worksheet selection prior to running the macro contains cell(s) in Row 1 of the worksheet, a #NAME? error will result. Otherwise, the macro incorrectly includes the cell above the selection when creating the SUM formula.
MORE INFORMATION
WorkaroundThe errors are eliminated by adding 1 to the SelRows parameter as shown below:
Change =FORMULA("=sum(R"&BotRow&"C:R"&BotRow-SelRows&"C)","R[2]C") to =FORMULA("=sum(R"&BotRow&"C:R"&BotRow-SelRows+1&"C)","R[2]C") Steps to Reproduce Problem
REFERENCES"Microsoft Excel Function Reference," version 3.0, pages 212-213
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |