Hi all,
I found a great macro to combine different works sheets but my issues is that the sheet name change from file to file. How could I change this line
Set wksSrc = wbkSrc.Worksheets("data"[FONT=Consolas, Liberation Mono, Menlo, Courier, monospace])
[/FONT][FONT=Consolas, Liberation Mono, Menlo, Courier, monospace]to something like this
[/FONT]Set wksSrc = wbkSrc.Worksheets("*"[FONT=Consolas, Liberation Mono, Menlo, Courier, monospace])
[/FONT][FONT=Consolas, Liberation Mono, Menlo, Courier, monospace]The link to the macro is here
[/FONT][FONT=Consolas, Liberation Mono, Menlo, Courier, monospace]https://danwagner.co/how-to-combine-multiple-excel-workbooks-into-one-worksheet-with-vba/
[/FONT]Many thanks for your help
I found a great macro to combine different works sheets but my issues is that the sheet name change from file to file. How could I change this line
Set wksSrc = wbkSrc.Worksheets("data"[FONT=Consolas, Liberation Mono, Menlo, Courier, monospace])
[/FONT][FONT=Consolas, Liberation Mono, Menlo, Courier, monospace]to something like this
[/FONT]Set wksSrc = wbkSrc.Worksheets("*"[FONT=Consolas, Liberation Mono, Menlo, Courier, monospace])
[/FONT][FONT=Consolas, Liberation Mono, Menlo, Courier, monospace]The link to the macro is here
[/FONT][FONT=Consolas, Liberation Mono, Menlo, Courier, monospace]https://danwagner.co/how-to-combine-multiple-excel-workbooks-into-one-worksheet-with-vba/
[/FONT]Many thanks for your help