Andy,
Just to want to clarify when you say "The problem with this is it leaves many rows and causes the files I am working with to be megabytes bigger than they should.", do you mean the previous rows are not cleared and stay there, or they are cleared but as blank rows and the file size is not reduced?