Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autoname a range
Thanks in advance.
Is it possible to automate the naming of a range, say of a table, as say the intersection of the row and column headers? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autoname a range
Hi
Try this ActiveWorkbook.Names.Add Name:=Selection.Cells(1, 1).Text, RefersTo:=Selection.Address The row and column headers are assumed to be in the first row and column (the Cells(1,1) bit). You can replace Selection with a range object if you require. regards Paul On Sep 23, 7:25*am, CLB wrote: Thanks in advance. Is it possible to automate the naming of a range, say of a table, as say the intersection of the row and column headers? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Autoname a range
Assume the variable rng points at the table
rng.Name = rng.Cells(1,1,).value -- __________________________________ HTH Bob "CLB" wrote in message ... Thanks in advance. Is it possible to automate the naming of a range, say of a table, as say the intersection of the row and column headers? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Autoname a save as file from a cell in a read only file | Excel Discussion (Misc queries) | |||
AutoName Sheets by current date | Excel Worksheet Functions | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |