Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm wanting to add range names from a list in a spreadsheet. I have several
questions: I have this code so far ... Dim lastrow Dim rangename Dim seriesrange CurBook = Application.ActiveWorkbook.Name lastrow = Worksheets("SeriesList").Cells(Rows.Count, "i").End(xlUp).Row For i = 2 To lastrow Workbooks(CurBook).Worksheets("SeriesList").Range( "i" & i).Value = rangename Workbooks(CurBook).Worksheets("SeriesList").Range( "h" & i).Value = seriesrange ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange Next End Sub Question 1: What format should the rangename and seriesname be in the spreadsheet. I currently have something that looks like this for the series name Name_ChartLabel (but it's calculated from other fields) SeriesRange is listed in the workbook as =OFFSET(K11,J11,0) where K11 is a label, J11 is the offset in rows. What do I need to change so that this will work properly? Thanks in advance, Barb Reinhardt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting email address names in a range of cells to real names | Excel Worksheet Functions | |||
adding range names | Excel Discussion (Misc queries) | |||
Adding Range Names | Excel Worksheet Functions | |||
Adding Range to Worksheet Names Collection | Excel Programming | |||
Adding and deleting Range Names | Excel Programming |