Hello all!
I'm brand new to the forum and hoping for a solution to the following complex situation.
I have a workbook with 24 sheets. I am hoping to make a 25th sheet that accesses the other 24 in the following way...I will call the 25th sheet MASTER for script purposes.
I am adding a column M to each sheet. I want a macro/VBA so that any time the letter Y (for yes) is entered into column M in the rows of the first 24 sheets, it will create a new row in MASTER and copy the values in cells B, C, D, H, and J from the regular sheet's row into the MASTER sheet's new row. The cell values should transfer as follows from regular sheets to the master.
B > B, C > C, D > D, J > E, H >F.
If in the newly created row in MASTER, the value of cell A could be the name of the sheet it is pulling from, that would also be helpful.
So example where sheet 7 (of 24) is named CHOLULA.
In CHOLULA column M, I enter "Y" on row 2.
Then, a new row is generated in MASTER, taking the values from cells B2, C2, D2, J2, and H2 from CHOLULA row 2 and copying them over to the new row in MASTER, as well as filling MASTER cell A2 with the name of sheet 7, CHOLULA.
Is this possible? Would anyone have a script that would work for this? It would be greatly appreciated as this has been giving me a headache at work since I'm of a fairly novice skill level Excel wise.
I'm brand new to the forum and hoping for a solution to the following complex situation.
I have a workbook with 24 sheets. I am hoping to make a 25th sheet that accesses the other 24 in the following way...I will call the 25th sheet MASTER for script purposes.
I am adding a column M to each sheet. I want a macro/VBA so that any time the letter Y (for yes) is entered into column M in the rows of the first 24 sheets, it will create a new row in MASTER and copy the values in cells B, C, D, H, and J from the regular sheet's row into the MASTER sheet's new row. The cell values should transfer as follows from regular sheets to the master.
B > B, C > C, D > D, J > E, H >F.
If in the newly created row in MASTER, the value of cell A could be the name of the sheet it is pulling from, that would also be helpful.
So example where sheet 7 (of 24) is named CHOLULA.
In CHOLULA column M, I enter "Y" on row 2.
Then, a new row is generated in MASTER, taking the values from cells B2, C2, D2, J2, and H2 from CHOLULA row 2 and copying them over to the new row in MASTER, as well as filling MASTER cell A2 with the name of sheet 7, CHOLULA.
Is this possible? Would anyone have a script that would work for this? It would be greatly appreciated as this has been giving me a headache at work since I'm of a fairly novice skill level Excel wise.