Hi,
I'd like to add the necessary code to an already existing CommandButton (called CommandButton_Choose_These_Students) that does the following five (5) things ...
1. Creates a new worksheet (which is to be a copy of a worksheet called ... Student Profile Template) for each ID number found in the ranges ...
* PrintTemplate!W49:W400
* PrintTemplate!Z49:Z400
* PrintTemplate!AC49:AC400
* PrintTemplate!AC49:AC400
Most likely, out of all those cells, there might only be a handful that actually have a student ID in them,
sometimes perhaps 60 or so, but I have to cover the possibility of more.
2. Each of the new sheets created should be named the ID Number that was found in the four ranges mentioned above .... so, if there were just three ID numbers found in those four ranges (the ID numbers being ... 32765, 34985, 23660), then three new sheets should be created and named 32765, 34985, and 23660.
3. Print just Page 1 (Range A1:Y39) of each of those new Sheets made.
4. Delete those very same sheets, once the printing has been done.
5. Clear the contents of those four ranges mentioned ...
* PrintTemplate!W49:W400
* PrintTemplate!Z49:Z400
* PrintTemplate!AC49:AC400
* PrintTemplate!AC49:AC400
I should ask ... the sheets created will each have a large table full of cells that will be filled dynamically, and depending on the computer the user is using, might take a few moments to complete filling, so should we add another instruction after task 2. to pause for 20 seconds before proceeding with task 3. which is the printing ? I fear the printed page might come out with only part of the table filled if we print to soon after task 2 is instructed, but if that's not likely to happen, then don't worry about it.
I don't know if you need to know the name of the File, but it is ... Fancy Print Request Practice
Any help with the coding of this would be hugely appreciated.
Very kindest regards,
Chris
I'd like to add the necessary code to an already existing CommandButton (called CommandButton_Choose_These_Students) that does the following five (5) things ...
1. Creates a new worksheet (which is to be a copy of a worksheet called ... Student Profile Template) for each ID number found in the ranges ...
* PrintTemplate!W49:W400
* PrintTemplate!Z49:Z400
* PrintTemplate!AC49:AC400
* PrintTemplate!AC49:AC400
Most likely, out of all those cells, there might only be a handful that actually have a student ID in them,
sometimes perhaps 60 or so, but I have to cover the possibility of more.
2. Each of the new sheets created should be named the ID Number that was found in the four ranges mentioned above .... so, if there were just three ID numbers found in those four ranges (the ID numbers being ... 32765, 34985, 23660), then three new sheets should be created and named 32765, 34985, and 23660.
3. Print just Page 1 (Range A1:Y39) of each of those new Sheets made.
4. Delete those very same sheets, once the printing has been done.
5. Clear the contents of those four ranges mentioned ...
* PrintTemplate!W49:W400
* PrintTemplate!Z49:Z400
* PrintTemplate!AC49:AC400
* PrintTemplate!AC49:AC400
I should ask ... the sheets created will each have a large table full of cells that will be filled dynamically, and depending on the computer the user is using, might take a few moments to complete filling, so should we add another instruction after task 2. to pause for 20 seconds before proceeding with task 3. which is the printing ? I fear the printed page might come out with only part of the table filled if we print to soon after task 2 is instructed, but if that's not likely to happen, then don't worry about it.
I don't know if you need to know the name of the File, but it is ... Fancy Print Request Practice
Any help with the coding of this would be hugely appreciated.
Very kindest regards,
Chris