Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Sat, 04 Feb 2006 19:33:22 -0500, Jay Somerset
wrote: How does one refer to a named area in a worksheet from within a VB macro subroutine? I know how to refer to a selection, but not a block of cells that has been named using the Insert|Name|Define dialog. Example: I have a 3x3 block of cells named AA. How can I refer to the individual cells within AA [e.g. AA(1,2)] within the VB coding of a macro (subroutine)? How can I make the name AA visible within the subroutine, and define it a s 3x3 array? Thanks. The worksheet names are available within a VB macro. Try using... Range("name").Cells(i, j).Value to refer to the (i,j) member of an array (cell range) to which the name "name" has been assigned on the worksheet. -- Jay. (remove dashes for legal email address) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need to Copy or Move to active cell from specified range | Excel Discussion (Misc queries) | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Possible Lookup Table | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions | |||
name of another worksheet in cell for reference | Excel Worksheet Functions |