Hi there,
Your code is crashing because you are creating worksheets for students whose names are not listed (i.e. blank cells) in the Range A6:A204 on the Students worksheet, and the routine is trying to assign blank values as the names of the new worksheets. You are also including the total number of students (Cell A206) as a student name and creating a corresponding worksheet.
Without studying all of your code in detail I have rewritten your "Students" and "Duplicate" routines as follows:
I have run the "Output Analysis to Excel" routine in the attached workbook with up to 150 students listed, and the application worked correctly.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks