Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to select a range of cells and name them based on the name
of the worksheet Sub NameBlock() myLastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row myLastCol = ActiveSheet.Cells(2, Columns.Count).End(xlToLeft).Column ThisWorkbook.Names.Add Name:=Worksheets(1).Name + "_total", _ RefersTo:="=$A$2:"&myLastRow, &myLastCol, Visible:=True End Sub Something is wrong |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
issue with RefersTo in non-EN languages | Excel Programming | |||
refersTo property | Excel Programming | |||
Help building string for Names.Add RefersTo, pls? | Excel Programming | |||
Wierd named range RefersTo value | Excel Programming | |||
Wierd named range RefersTo value | Excel Programming |