I have a workbook consisting of several sheets. Each week, the data is cleared from every sheet and replaced with new data (via a macro). The new data will have the same structure (data starts in the same row, same number of columns) every week. However, the number of rows can vary - and sometimes there is only one row of data. I currently have a macro that sums every column of every sheet - but it falters in the case where these is only one row of data to sum (there needs to be a blank row between the data and the sum).
What is the simplest way to accomplish this seamlessly? I know the code to run the operation on multiple sheets, so no need to go into that.
See attachment to really understand what I'm getting at (and how easy it seems it ought to be)
Bookmarks