hi All,
I have a workbook having more than 30 worksheets and increasing on regular basis.
Now every time I have combine data from specific worksheets and multiple ranges based on multiple request from my seniors.
for example : -
1) Sometimes I have to consolidate data from sheet name start with "BKH" or sometimes sheet name start with "AKH" or sometime for "BKH" & "AKH" both. Everytime I am combine it manually.
2) 99% of cases I have to copy data from range of column "B" to "G". and this section is divided into 1-5 sections. and some time from "A" to "F".
3) All sections header contains headers like "item", Item name" or "part number".(here needs to check every time if the range is from A to F or B to G based on first header.
4) while consolidation of all sheets, I need to add sheet name in consolidate sheet.
5) Also I need to add another column while consolidation which contains the "section name" which we find 1 row above each header in each section.
I am also attaching sample file with required result in "Consolidate Data". where data consolidated based on "BKH" only.
Link
Can any body suggest me VBA macro code for the same ?
Thanks in advance.
I have a workbook having more than 30 worksheets and increasing on regular basis.
Now every time I have combine data from specific worksheets and multiple ranges based on multiple request from my seniors.
for example : -
1) Sometimes I have to consolidate data from sheet name start with "BKH" or sometimes sheet name start with "AKH" or sometime for "BKH" & "AKH" both. Everytime I am combine it manually.
2) 99% of cases I have to copy data from range of column "B" to "G". and this section is divided into 1-5 sections. and some time from "A" to "F".
3) All sections header contains headers like "item", Item name" or "part number".(here needs to check every time if the range is from A to F or B to G based on first header.
4) while consolidation of all sheets, I need to add sheet name in consolidate sheet.
5) Also I need to add another column while consolidation which contains the "section name" which we find 1 row above each header in each section.
I am also attaching sample file with required result in "Consolidate Data". where data consolidated based on "BKH" only.
Link
Can any body suggest me VBA macro code for the same ?
Thanks in advance.