I receive a workbook with data which is divided into around 20 'region codes'. I have set up code to go through this for each potentioal region code and pull it into it's own workbook.
The problem is that often on the original workbook, there is no entry for certain regions. Due to the way my code is set up (cos it's the only way I could think of to do it), it will still create a workbook for these regions.
Is there a way to retain the functionality of the code, but have it NOT create a workbook if there is nothing to go into it?
Unfortunately, the region codes are not consecutive, so basically I have this code repeated 20 times, with changes to the region code each time.
Any help to sort this would be greatly appreciated.
Bookmarks