Hello
I need macro ot brings data from multiple files are existed in this directory "C:\Users\PC LP\Downloads\ Sales Report \" for the same sheet name" REPORT" for each file .
so my data in all of the files are different in locations . this means should match based on header even there are many duplicates data also should brings all of data from all of the files . the headers in file combined are A1: H1 in sheet REPORT where run the macro from it if they are matched with headers for the others files then should brings all of the files , if the headers are not matched , then should show message box and tell me what's the headers are not existed by indicate headers names in file combined . and every time run the macro should overwriting data by clearing data before brings them .
the files in the folder are xlsx and somtimes xlsm .
thank
I need macro ot brings data from multiple files are existed in this directory "C:\Users\PC LP\Downloads\ Sales Report \" for the same sheet name" REPORT" for each file .
so my data in all of the files are different in locations . this means should match based on header even there are many duplicates data also should brings all of data from all of the files . the headers in file combined are A1: H1 in sheet REPORT where run the macro from it if they are matched with headers for the others files then should brings all of the files , if the headers are not matched , then should show message box and tell me what's the headers are not existed by indicate headers names in file combined . and every time run the macro should overwriting data by clearing data before brings them .
the files in the folder are xlsx and somtimes xlsm .
thank