If there isn't anything to compare it against, then we'll have to add something to compare it against. Here's the macro updated to add the date and time of import to the first data row of each dataset in column BV. If BV isn't a good column to use, just change the column where indicated. The timestamp column should be blank in both the data sheet and the destination sheet. Then, whenever the macro runs, it will check each dataset's timestamp. If that timestamp exists in the destination sheet, it will ignore that dataset and go on to the next one. This could be improved further if the SheetX and SheetY are guaranteed to never have inserted rows or have the data rearranged. Then the macro could just start at the dataset below the last timestamped data. Let me know if that is the case.
Bookmarks