I am writing a macro to replace old data with new data (from a .txt file).
I gave the data a named range.
It works but when the new data has fewer rows than the old data some of the old rows are left. Example pasted below.
Any ideas how I can only show the new data in my worksheet?
Thanks,
Sharon
(new data ends where the square is and the row after
that is part of the old data)
561290127 1030803 202 93 14
457069718 1030803 204 93 14
288582637 1030803 205 45 42
458889972 1030803 205 65 14
467259812 1030803 205 95 28
458928505 1030803 206 93 14
643628937 1030803 207 51 13.3
450904458 1030803 207 61 8.75
450904458 1030803 207 61 8.75
I gave the data a named range.
It works but when the new data has fewer rows than the old data some of the old rows are left. Example pasted below.
Any ideas how I can only show the new data in my worksheet?
Thanks,
Sharon
(new data ends where the square is and the row after
that is part of the old data)
561290127 1030803 202 93 14
457069718 1030803 204 93 14
288582637 1030803 205 45 42
458889972 1030803 205 65 14
467259812 1030803 205 95 28
458928505 1030803 206 93 14
643628937 1030803 207 51 13.3
450904458 1030803 207 61 8.75
450904458 1030803 207 61 8.75