Hi there,
Take a look at the attached workbook and see if it does what you need. It contains the following code:
The value of the constant used to indicate the data column can be altered to suit any change in the layout of your worksheet.
When performing operations like this it is important to ensure that the variables you're using to track your progress through the data rows remain accurate even while new rows are being inserted. For this reason the scan process begins at the bottom of the data column and progresses upwards towards the top - any new rows are inserted below the row currently being checked, so the row tracker always remains accurate.
Hope this helps - please let me know how you get on.
Regards,
Greg M
P.S. My compliments on the clear way in which you explained your requirements - it made finding a solution that much easier
Bookmarks