Hi all,
I have the following code to sum across a specific range:
As you can see, this line is trying to take the sum of a single row of cells, from start_col to end_col. Problem is, it errors out when trying to sum up a row with any blank cells.
Any thoughts or ideas? Any help is much appreciated!
Best,
Joe
I have the following code to sum across a specific range:
Code:
total_sum = Application.WorksheetFunction.Sum(Range(Cells(row_num, start_col), Cells(row_num, end_col)))
As you can see, this line is trying to take the sum of a single row of cells, from start_col to end_col. Problem is, it errors out when trying to sum up a row with any blank cells.
Any thoughts or ideas? Any help is much appreciated!
Best,
Joe