The information in this article applies to:
SUMMARYA cell reference can be concatenated. Ways to use them differ, depending on whether the cell reference is on a macro sheet or a worksheet. Examples on how to use each type follow the general description below. MORE INFORMATION
Use the text concatenation symbol & (an ampersand) to join cell references.
Enclose literal strings with double quotation marks. To refer to the value
in another cell or a defined name, use only the cell's reference, or the
name, without the quotation marks.
WorksheetUse the INDIRECT function to convert the resulting text string to an actual reference in a worksheet, as follows:
MacroIn most cases, you can use the concatenated address just as you would any normal cell reference in a macro function, as follows:
However, some functions require an actual reference instead of a text string. In these cases, nest the TEXTREF function inside the other function, as follows:
Another method is to use FORMULA.GOTO in much the same manner.
REFERENCES
Online Help, version 5.0, Reference Information, Microsoft Excel Macro
Functions Contents
Additional query words: concat
Keywords : |
Last Reviewed: March 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |