I am currently trying to combine two sheets of data which are updated periodically and then remove duplicates.
I have 4 worksheets:
- Sheet X
- Sheet Y
- Sheet Z
- Sheet AA
Sheet X and Y are updated hourly and only ever grow.
I wish to clear Sheet Z completely, clear columns C:P on Sheet AA, Then copy all the data from X and Y and paste into Z, sort by column A, oldest to newest, then remove duplicates from columns B & E. Then copy all the data left and paste into Sheet AA where I run further calculations and VLOOKUPS from.
The issue I have is at the moment I am only copying/editing data up to the row which is recorded in the macro. Is there a way in which to select up to the last populated Row?