Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Peter,
Try something like: '============= Public Sub Tester() Dim varRow As Long Dim varRow2 As Long varRow = 3 varRow2 = 9 ActiveCell.FormulaR1C1 = _ "=SUM(R" & varRow & "C:R" & varRow2 & "C)" End Sub '<<============= --- Regards, Norman "PeterS" wrote in message ... Hi, and would like to use instead of the numbers 3 or -1 variables, but it doesn't work. e.g. ActiveCell.FormulaR1C1 = "=SUM(R[varRow]C:R[varRow2]C)" what should I do? -- Thank you very much PeterS |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|