Hi to all, I would like to delete the blank rows between the last fulfill cell in col. “A” with text “Grand Total” and “Departments Totals”using a VBA code. Please see below an extract of my data by which the range of rows which should delete are 155:159. One row, 154 should remain and therefore that the rows are not stably but variable. I present below an extract of original data and expected result. Thank you all in advance.
Original data
Expected result
Original data
A | B | |
148 | Grand Total | |
149 | ||
150 | Grand Total | |
151 | ||
152 | ||
153 | Grand Total | |
154 | ||
155 | ||
156 | ||
157 | ||
158 | ||
159 | ||
160 | Departments Totals |
Expected result
A | B | |
148 | Grand Total | |
149 | ||
150 | Grand Total | |
151 | ||
152 | ||
153 | Grand Total | |
154 | ||
160 | Departments Totals | |
| | |
| | |
| | |
| | |
| |