I have a very typical scenario where two columns from different worksheets(in same workbook) needs to be copied to single worksheet.
Source workbook name: Mycalc.xlsm
Worksheets name: Sheet1, sheet2, sheet3 (There are other sheets as well but action t o be performed only for the mentioned)
Target Workbook Name: Mycalc.xlsm
Target worksheet name: Merged
Condition:
- Cannot do for each for all worksheets in the the workbook as the action to be performed only on the mentioned three sheets.
- The columns headers are not necessarily in same order in all sheets but the header is same.
Result Expected: The resultant is a consolidated data from all 3 sheets along with a column sheetname mentioning the sheet where data copied.
I am no expert in this and hence i am not pasting the code whatever i have achieved. Adding to it, I have approached by adding the sheet name in a named range as list (in a workbook i created a table having the list of sheet names and for each is performed on that range).
The experts of stackoverflow, please help me.
Regards,
Mani