Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following in a macro
ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange This works to define workbook names. Is it possible to define a worksheet specific name? I have the sheet name defined as "sht" and am wondering what I need to change if it can be done. Thanks in advance, Barb Reinhardt |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Barb,
I believe to specify a local sheet name, you simply have to preface the rangename string with the sheet name and an exclamation point. -- http://HelpExcel.com 1-888-INGENIO 1-888-464-3646 x0197758 "Barb Reinhardt" wrote: I have the following in a macro ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange This works to define workbook names. Is it possible to define a worksheet specific name? I have the sheet name defined as "sht" and am wondering what I need to change if it can be done. Thanks in advance, Barb Reinhardt |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Like so
worksheets("Sheet1").names.add name:="Jim",refersto:=range("A1:B1") -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Barb Reinhardt" wrote in message ... I have the following in a macro ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange This works to define workbook names. Is it possible to define a worksheet specific name? I have the sheet name defined as "sht" and am wondering what I need to change if it can be done. Thanks in advance, Barb Reinhardt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Specific location to register the worksheet names of a workbook | Excel Discussion (Misc queries) | |||
Defining Named Range for Lastrow in a specific column | Excel Discussion (Misc queries) | |||
Defining Range within Specific Dates | Excel Worksheet Functions | |||
Defining non worksheet specific names... | Excel Worksheet Functions | |||
Delete Specific Range Names | Excel Programming |