Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Is there an easier and shorter way than the macro below to add up every third cell in column K Sub Macro3() Range("K3").Select ActiveCell.FormulaR1C1 = "=SUM(R[-1]C[-7]:R[1]C[-1])" Range("K6").Select ActiveCell.FormulaR1C1 = "=SUM(R[-1]C[-7]:R[1]C[-1])" Range("K9").Select ActiveCell.FormulaR1C1 = "=SUM(R[-1]C[-7]:R[1]C[-1])" Range("K12").Select ActiveCell.FormulaR1C1 = "=SUM(R[-1]C[-7]:R[1]C[-1])" End Sub the next range would be K18 then K21, K24,K27,K30, thru to K144 -- Many Thanks Sue |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there an easier way? | Excel Worksheet Functions | |||
easier way to do this? | Excel Discussion (Misc queries) | |||
Is there an easier way of doing this?? | Excel Programming | |||
Is there an easier way? | Excel Discussion (Misc queries) | |||
TextBox Macro - Is there an easier way ? | Excel Programming |