Hi Pedros,
Using the last cell in column B as a marker, try the following:
Columns("A").ClearContents
Range("A1").Value = 1
Range("A2").Formula = "=R[-1]C+1"
Range("B65536").End(xlUp).Select
ActiveCell.Offset(0, -1).Formula = "*"
Range("A2").Select
Range("A2").Copy
Range(Selection, Selection.End(xlDown)).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A2", Range("A2").End(xlDown)).Copy
Selection.PasteSpecial Paste:=xlPasteValues
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A1").Select
Hope this helps.
Robert
Bookmarks