Hi Team,
I am looking for some help in copy and paste the data based on some criteria. For example, I have 175 columns in sheet2 and this might increase or decrease. I have 25 columns in sheet1 this may increase or decrease based on the requirement and all these columns has the same names (99% won't change).
I would like to copy the data from sheet2 based on columns names listed in sheet1. There is one unique column in sheet2 which is claim number. If I paste one claim number in A1 then data related to 25 columns should copy form sheet2 to sheet1 from A5 cell onwards. I can do this from vlookup but column positions may change most of the time.
Can anyone suggest me how to perform this via macro?
Thank you,
I am looking for some help in copy and paste the data based on some criteria. For example, I have 175 columns in sheet2 and this might increase or decrease. I have 25 columns in sheet1 this may increase or decrease based on the requirement and all these columns has the same names (99% won't change).
I would like to copy the data from sheet2 based on columns names listed in sheet1. There is one unique column in sheet2 which is claim number. If I paste one claim number in A1 then data related to 25 columns should copy form sheet2 to sheet1 from A5 cell onwards. I can do this from vlookup but column positions may change most of the time.
Can anyone suggest me how to perform this via macro?
Thank you,