create new sheets based on list of student ID numbers

palaeontology

Active Member
Joined
May 12, 2017
Messages
444
Office Version
  1. 2016
Platform
  1. Windows
Hi, I've watched numerous youtube videos on this topic but can't get my head around it.

I have a list of student ID numbers in .... 'Yr 9 Hw Data'!A4:A36 ... that's a maximum of 33 student ID numbers ... I can't envisage I'd ever have a class of more than 29.

I'd like to have a code that, when a button is pressed, generates a new sheet for any student ID number in the list. Importantly, I have a sheet I'd like to use as a template (for each of these new sheets) called ... 'new sheet template'

I'd need the new sheets to each bear the name of the student number it was generated for.

Obviously, if there are empty cells in the list ... for example if I only have 24 students and there are 9 empty cells at the bottom of the list ..... I wouldn't need a sheet generated for the empty cells.

If the button was pressed a second time, some months later for example, I'd need it to wipe out any existing student ID sheet, and make all new ones from the list.

Is this code possible ?

Kind regards,

Chris
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Use the script in post 8
But change this line of code:
Sheets("start").Copy , Sheets(Sheets.Count)
To:
Sheets("new sheet template").Copy , Sheets(Sheets.Count)
 
Upvote 0
that worked perfectly ... thankyou to everyone who helped me,

kind regards,

Chris
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,791
Members
449,188
Latest member
Hoffk036

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top