Hi all, I have ten .xls file in one folder, C:\data\.
In the files, there are several worksheets inside.
<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td> </td><td>A</td><td>B</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td>Directory</td><td>C:\Data\</td></tr></tbody></table>
I have one Master.xls in the other folder, C:\Summary\
I would like to have a macro, to check with all the files in the folder,B2, comparing to the Master.xls
If Master.xls does not have the exact worksheet name with files in the folder. It will create one new worksheet with the same name in the Master.xls.
The macro will end when all the files are opened and compared with the master.xls.
The output, Master.xls will have all the worksheets which can be found in all the files in the directory.
In the files, there are several worksheets inside.
<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td> </td><td>A</td><td>B</td></tr><tr style="height: 17px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td>Directory</td><td>C:\Data\</td></tr></tbody></table>
I have one Master.xls in the other folder, C:\Summary\
I would like to have a macro, to check with all the files in the folder,B2, comparing to the Master.xls
If Master.xls does not have the exact worksheet name with files in the folder. It will create one new worksheet with the same name in the Master.xls.
The macro will end when all the files are opened and compared with the master.xls.
The output, Master.xls will have all the worksheets which can be found in all the files in the directory.