Hello,
I have a bit of code from Alex P at another forum that works when sorting and ordering columns from one sheet to another sheet. You can order the columns any way you like on the target sheet and it will reorder the columns as you have laid them out with the proper column data being under your new header order. I would like to keep this part.
I have two further requirements however.
1. it seems this only works when the headers are on row 1 and I need to use header definitions on a different row and start from a different column on each.
2. I need to get this to happen between two workbooks rather than worksheets on the same book.
I could copy all the values from one book to a "Raw" sheet and look for the headers there copy / paste the needed columns then delete the Raw sheet entirely or for templates sake just clear the sheet and leave it blank if needed.
Should this work without regard to the Header row range if properly defined in the sub? I am only looking for 3 matching columns of 25 - 30 columns.
Here is the code that I have used and I know it works with headers on the same row 1 on both sheets.
TIA,
Bud
Bookmarks