Hi,
I've written a macro that clears all data from several sheets so you have a blank sheet to start from the next week we run reports.
part of the data resides in tables. however not always all tables will be filled.
so when this part of the macro runs
Sheets("TBL WT").Select
Rows("2:150").Select
Selection.Delete Shift:=xlUp
and the table is empty, it has no data to remove, and therefor it doesnt and the macro stops running ( I have put it in the last position so it kinda works still)
I have a copy of this table ( callet TBL DT) which is usually filled with a couple of rows of data and that does empty with the same code.
so the only issie there is is that it 'jams' when there is no data in the table.
is there a way to rewrite the code so it does not delete when the rows are empty and the code works as meant when there is data to delete? maybe?
thanks!
Pascalle.
Bookmarks