This bit of code should do the job...
It needs to be inserted correctly to work ...
With the workbook you want this code to work on open (and it will be easier if only that workbook is open):
1. Press Alt-F11 to open the VB editor
2. The sheets of the workbook will be listed on the left, double-click on the sheet you want to apply this code to - a blank text editor will open.
3. In the drop-down at the top left of the editor select "Worksheet"
4. The first and last lines of my code will appear automatically, paste the rest of the code in between them.
5. Close the VB editor by pressing the red cross at the top-right.
6. Sorted.
Bookmarks