Anbuselvam K
Member
Dear Excel Guru,
I need a VBA code to add a new worksheet with respect to the selected columns filtered list. The attached file has some data of rows with a data filter.
If I select any of the filters and run the code, then it should add the list of the new sheets with it is selected list.
Example
In the below snapshot I have selected one filter and it shows 4 values (M15 SCREED, M30, M40, and M50). So it has to add 4 new sheets with the worksheet name of filter list value
Sheet1 ("M15 SCREED")
Sheet2 ("M30")
Sheet3 ("M40")
Sheet4 ("M50")
Sheet2 M30 should have the rows of data for M30 ONLY. Likewise, remaining all sheets should have it is respective rows of data.
As like above if I select another column filter like the below snapshot and run the code manually, then it has to add 7 new sheets as the filters have 7 values (6, 7, 8, 9, 10, 12, and 14), then the respective rows of data to be transferred to the new sheets.
Also, all column heading should be repeated in all the new sheets irrespective of blanks if any. (QTY)
heading should be placed in row 4.
Expecting your valuable reply. Thanks in advance.
I need a VBA code to add a new worksheet with respect to the selected columns filtered list. The attached file has some data of rows with a data filter.
If I select any of the filters and run the code, then it should add the list of the new sheets with it is selected list.
Example
In the below snapshot I have selected one filter and it shows 4 values (M15 SCREED, M30, M40, and M50). So it has to add 4 new sheets with the worksheet name of filter list value
Sheet1 ("M15 SCREED")
Sheet2 ("M30")
Sheet3 ("M40")
Sheet4 ("M50")
Sheet2 M30 should have the rows of data for M30 ONLY. Likewise, remaining all sheets should have it is respective rows of data.
As like above if I select another column filter like the below snapshot and run the code manually, then it has to add 7 new sheets as the filters have 7 values (6, 7, 8, 9, 10, 12, and 14), then the respective rows of data to be transferred to the new sheets.
Also, all column heading should be repeated in all the new sheets irrespective of blanks if any. (QTY)
heading should be placed in row 4.
Expecting your valuable reply. Thanks in advance.