I have amended the script to accomodate 5 working worksheets.
Tested it and there are 2 issues:
1) The newly created workbooks have ws2, 3, 4 & 5 named as "Sheet 2, 3, 4 & 5". I wanted ws2, 3, 4, 5 to retain the names as below.
Set ws2 = Sheets("Capital Projects")
Set ws3 = Sheets("Development Projects")
Set ws4 = Sheets("Capital Projects-CO")
Set ws5 = Sheets("Development Projects-CO")
2) There are individual modules like A01, A02, A03. However, A08 does not exist in ws2 and ws4. They are in ws3 and ws5. The newly created workbooks does not generate A08. It only has the rest like A01, A02, A03.
Bookmarks