Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to sum all the rows in a range column wise
Values Start from G9 and ends at Rx (x is the last row num) The values get populated based on a selection from a list. The below code works perfect when i change the selection once. But when i change the selection again, the first row (i.e 9th gets filled with #REF) With Sheets("Sheet1") col = "G" For i = 1 To 12 Range(col & (x + 1)).Cells.Formula = "=Sum(" & col & "9:" & col & x & ")" col = Chr(Asc(col) + 1) Next i End With Any thoughts? Regards Thiaga |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Strange if(***) behaviour? | Excel Discussion (Misc queries) | |||
Sum on rows column wise - Strange error | Excel Worksheet Functions | |||
Strange behaviour when sorting rows | Excel Discussion (Misc queries) | |||
Data row wise, formula column wise | Excel Discussion (Misc queries) | |||
Strange behaviour | Excel Worksheet Functions |