By: Jorge F.

Hello Rifat, Thank you very much. I enjoyed your VBA code.

Would you let me fix a couple of bugs by adding 2 lines at the beginning:

When you come from copying and left active the clipboard, it makes a mess. Solution:

Application.CutCopyMode = False

If you are selecting a range but for some reason (you had pressed Enter or Tab) your active cell is not in the first row. The macro don’t execute over the lines previous to active cell:

Selection(1).Activate ‘Activate the first cell in the selected range so it starts from the first row in selection

Don’t need to post this to the public. please, would you send me an email when you find a spare minute