clmitche223
New Member
Hi all,
I have two workbooks (Updated and New) and a worksheet in each (both called Report) and I need to copy columns from (New, Report) that match (Updated, Report) appending them to each matching column. I need to accomplish this using VBA.
Ex:
Workbook: Updated Workbook: New
Worksheet: Report Worksheet: Report
Column Titles: Name, Address, Telephone Column Titles: Name, Zip, Email, Address
The columns in workbook New can be in any different order and the title cells can contain different titles. I won't know what titles or what order they will be in but if the title cell in both workbooks match, I need to copy the entire column from workbook New and append it to the appropriate column in workbook Updated. I have all the code necessary to open each workbook and do the remaining processing, but I just can't figure out the code for copying and appending the appropriate columns.
I hope this makes sense and someone can help me.
Thanks a lot!
I have two workbooks (Updated and New) and a worksheet in each (both called Report) and I need to copy columns from (New, Report) that match (Updated, Report) appending them to each matching column. I need to accomplish this using VBA.
Ex:
Workbook: Updated Workbook: New
Worksheet: Report Worksheet: Report
Column Titles: Name, Address, Telephone Column Titles: Name, Zip, Email, Address
The columns in workbook New can be in any different order and the title cells can contain different titles. I won't know what titles or what order they will be in but if the title cell in both workbooks match, I need to copy the entire column from workbook New and append it to the appropriate column in workbook Updated. I have all the code necessary to open each workbook and do the remaining processing, but I just can't figure out the code for copying and appending the appropriate columns.
I hope this makes sense and someone can help me.
Thanks a lot!
Last edited: