Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hey all, I have a worksheet which has two columns to it and I need a third t act as a totals column for all the values in columns a and b. I'm doing it as part of a sub in vba and I need to know if there is short way of reffering to column as I keep ending up with pages of: Range("G3").Activate ActiveCell.FormulaR1C1 = "=SUM(RC[-2]:RC[-1])" Columns("E:G").Select Range("G4").Activate ActiveCell.FormulaR1C1 = "=SUM(RC[-2]:RC[-1])" Columns("E:G").Select Range("G5").Activate ActiveCell.FormulaR1C1 = "=SUM(RC[-2]:RC[-1])" Many thanks -- Hru4 ----------------------------------------------------------------------- Hru48's Profile: http://www.excelforum.com/member.php...fo&userid=2489 View this thread: http://www.excelforum.com/showthread.php?threadid=50686 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Summing across columns while skipping some columns | Excel Worksheet Functions | |||
summing columns | Excel Worksheet Functions | |||
Summing columns | Excel Discussion (Misc queries) | |||
summing columns | Excel Worksheet Functions | |||
Not summing a columns? | Excel Worksheet Functions |