A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I reiterate my comment at the bottom of my last post re "System Analysis" prior to commencing the programming. The programmer writes the code as per the specifications provided and that is what I have attempted to achieve and I previously used the Categories as per the examples given. Please don't get upset about me saying this but for your future projects I want you to understand how important it is to get the specifications correct before commencing the programming.
Anyway the categories were not too difficult to change. I simply added another column to the table on Main Menu sheet and updated the category header in the code based on the first and last column of the table. Your Category with numbers must remain as is on the Template Worksheet in the Macro workbook. You can still add more categories to the table but you will need to update the template category worksheet with the extra categories. The loop for the categories is not limited to 4 because the code will process as many as there are in the table on the Main Menu worksheet.
I did not previously realize that you wanted to run the code separately for each scenario and I combined both . However Scenario 1 and Scenario 2 are now controlled with a CheckBox on the Progress Userform. If Categories are required then check the box before clicking the "Start" button. If the box is not checked then the categories sub is not called and also the categories worksheet is not copied to the Output workbook. I have changed the code at around lines 139 to 158 and used a separate Case statement for each template worksheet name to be copied instead of in one Case statement with comma separated list of worksheets. (Are you aware that you can see the cursor position line number on the toolbar in the VBA editor?)
Updated macro workbook and source data file at the following link. New Version 7