Hi All,
I am new to Mr. Excel and VBA codes so please bare with me. Essentially, I need a code for a button that will copy a hidden tab, duplicate itself a number of times, then and rename the copied tabs based on the cell names in a different sheet.
So for Sheet1 I have the button and a list of tab names in cells D5:D55. I have Sheet2 hidden, but Sheet2 is a model tab of what I want duplicated. So I would like Sheet2 copied and duplicated, then renamed based on the data in sheet1 D5:D55. I would like it done in a way so that if 50 names are in D5:D55 when the button is pressed, 50 copies of Sheet2 will appear unhidden and each of the sheets are named based on the values of D5:D55. It also needs to work if only 2 or 3 names are entered in d5:d55 so that only 2 or 3 tabs appear and are named based on the values of d5:d55. Lastly I would like Sheet2 to hide itself again after the copies have been made and renamed.
Hoping you can help!
Thanks,
I am new to Mr. Excel and VBA codes so please bare with me. Essentially, I need a code for a button that will copy a hidden tab, duplicate itself a number of times, then and rename the copied tabs based on the cell names in a different sheet.
So for Sheet1 I have the button and a list of tab names in cells D5:D55. I have Sheet2 hidden, but Sheet2 is a model tab of what I want duplicated. So I would like Sheet2 copied and duplicated, then renamed based on the data in sheet1 D5:D55. I would like it done in a way so that if 50 names are in D5:D55 when the button is pressed, 50 copies of Sheet2 will appear unhidden and each of the sheets are named based on the values of D5:D55. It also needs to work if only 2 or 3 names are entered in d5:d55 so that only 2 or 3 tabs appear and are named based on the values of d5:d55. Lastly I would like Sheet2 to hide itself again after the copies have been made and renamed.
Hoping you can help!
Thanks,