Naming a range
Posted by mike on July 21, 2000 6:48 AM
This code finds a range then names it...
Do Until ActiveCell = "70 New"
ActiveCell.Offset(1, 0).Select
Loop
ActiveCell.Offset(-1, 0).Select
Range(ActiveCell, ActiveCell.End(xlUp)).EntireRow.Select
ActiveWorkbook.Names.Add Name:="adam", RefersToR1C1:= _
"=offset(exception!R1C1,0,0,COUNTA(EXCEPTION!C1),COUNTA(EXCEPTION!R1))"
Application.Goto REFERENCE:="adam"
the line with "=offset..." is wrong!!!!!! what goes in there. THANKS!