Hi all
I have looked through as many of these posts as I can find and couldn't see one which covers it.
I have two sheets "DB" and "Experiment 10". In the future i'll add "Experiment 20", "Experiment 30", "Experiment 40" etc., but for now I'll stick to these two.
Sheet "Experiment 10" is used for data entry; the user will be presented with a few questions, and they type in the numerical or text answers in a designated cell. It will also have the number 10, written in cell B5.
When the user has answered the questions, they will click a button (activating a macro) which will copy the answers to Row 10 of sheet "DB".
Here's where I have been struggling. When I come to create "Experiment 20", I want to be able to duplicate "Experiment 10", and simply change the number in cell B5 to 20; no alterations to the macro. This would change the sheet's identity; so when the user completes Experiment 20's questions, the same macro is run, but it would copy the info to row 20 of sheet "DB".
Eventually there will be lots of Experiment sheets, and I want to be able to duplicate any Experiment sheet, stick in it's number in cell B5, and it'll copy the data to the correct row.
Thanks.
I have looked through as many of these posts as I can find and couldn't see one which covers it.
I have two sheets "DB" and "Experiment 10". In the future i'll add "Experiment 20", "Experiment 30", "Experiment 40" etc., but for now I'll stick to these two.
Sheet "Experiment 10" is used for data entry; the user will be presented with a few questions, and they type in the numerical or text answers in a designated cell. It will also have the number 10, written in cell B5.
When the user has answered the questions, they will click a button (activating a macro) which will copy the answers to Row 10 of sheet "DB".
Here's where I have been struggling. When I come to create "Experiment 20", I want to be able to duplicate "Experiment 10", and simply change the number in cell B5 to 20; no alterations to the macro. This would change the sheet's identity; so when the user completes Experiment 20's questions, the same macro is run, but it would copy the info to row 20 of sheet "DB".
Eventually there will be lots of Experiment sheets, and I want to be able to duplicate any Experiment sheet, stick in it's number in cell B5, and it'll copy the data to the correct row.
Thanks.