Say I had just copied a table to another workbook, and wanted to write a macro to verify the copy was successful, I would have to have two range variables to compare them. How do I assign the address of the cell being compared to follow the other cell’s address in the other workbook, so that they are both offset the same way, even if the two starting cells are different, and so can still be compared correctly?
Share
Change the originalRange to your original data range in the desired workbook. If this is run immediately after your paste you can use Selection for the pastedValue data. If not then change this accordingly: