Thanks for your reply Alf, the code you provide looks very cool in resorting the data into the correct position (with the exception of K=1, which results in an error because it is undefined I think). However in doing some more research about my problem I stumbled across some code that may be a better fit:
Book3.xlsm
I am attaching a more detailed sample workbook of my problem, where the data in the CityA table of "DB2" sheet should be sorted into City1 table of "DB" sheet. Can the above code sample work to do this? I am working on modifying it for table ranges, but could use some input as to how it might look.
Thanks
-Felipe
Bookmarks