The_Rock
Board Regular
- Joined
- Jul 2, 2007
- Messages
- 174
Hi Guys
I'm trying to create a SUM Macro that will sum the total in a number of columns.
The number of rows and columns are not fixed and change from week to week.
Currently, this is the code I have
This brings back the total for the first column (j) but does not return any results for anything else.
I entered the AE65536 to see if I made the column an absolute, whether results would be returned but no luck.
Any advice would be greatly appreciated.
I'm trying to create a SUM Macro that will sum the total in a number of columns.
The number of rows and columns are not fixed and change from week to week.
Currently, this is the code I have
Code:
Range("J65536:AE65536").End(xlUp).Offset(2, 0).FormulaR1C1 = "=SUM(R5C:R[-2]C)"
This brings back the total for the first column (j) but does not return any results for anything else.
I entered the AE65536 to see if I made the column an absolute, whether results would be returned but no luck.
Any advice would be greatly appreciated.