I'm trying to sum some columns in VBA so I can chart them. I am stuck on how to apply the worksheetfunction method. It's funny because this is probably the easiest thing I have done, but it's the only part I need help with.
Here is some ways I was thinking of accomplishing this.
Here is some ways I was thinking of accomplishing this.
Code:
For P = 4 To LColFC
wksForecastSheet.Cells(LRowFC + 2, P).Value = WorksheetFunction.Sum(ActiveSheet.Cells(4, P).Name & ":" & ActiveSheet.Cells(I - 1, P).Name)
wksForecastSheet.Cells(LRowFC + 3, P).Value = WorksheetFunction.Sum(Cells(I, P).Name & ":" & Cells(LColFC, P).Name)
Next