Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dave, Thanks for your help. I used: Target.FormulaR1C1 = "=SUM(R3C:R[-1]C)", which is very similar to your suggestion. A corollary question -- I have a column of numbers (each cell contain a number), with a fixed starting cell but a variable ending cell. want the macro to assign a Name (Workbook definition) to this range. Any ideas? Chuckles12 -- Chuckles12 ----------------------------------------------------------------------- Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494 View this thread: http://www.excelforum.com/showthread.php?threadid=26581 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim StartCell as Range
set StartCell = Range("B9") range(StartCell,StartCell.End(xldown)).Name = "List1" or Sub Tester4() Dim StartCell As Range Set StartCell = Range("B9") ThisWorkbook.Names.Add Name:="List1", RefersTo:= _ "=" & Range(StartCell, StartCell.End(xlDown)).Address(1, 1, External:=True) End Sub -- Regards, Tom Ogilvy "Chuckles123" wrote in message ... Dave, Thanks for your help. I used: Target.FormulaR1C1 = "=SUM(R3C:R[-1]C)", which is very similar to your suggestion. A corollary question -- I have a column of numbers (each cell contains a number), with a fixed starting cell but a variable ending cell. I want the macro to assign a Name (Workbook definition) to this range. Any ideas? Chuckles123 -- Chuckles123 ------------------------------------------------------------------------ Chuckles123's Profile: http://www.excelforum.com/member.php...o&userid=14948 View this thread: http://www.excelforum.com/showthread...hreadid=265814 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable series length/range | Charts and Charting in Excel | |||
Sum a column of variable length? | Excel Discussion (Misc queries) | |||
Using a Macro to Sum a Variable-Length Range (a Column) | Excel Programming | |||
Using a Macro to Sum a Variable-Length Range (a Column) | Excel Programming | |||
Using a Macro to Sum a Variable-Length Range (a Column) | Excel Programming |