I have a long list of data in Column A of worksheet "Sheet1".
I am using this code:
Sub insertRows()
ActiveSheet.Range("A1").Select
Do Until IsEmpty(ActiveCell)
Set curCell = ActiveCell
Set nextCell = ActiveCell.Offset(1, 0)
If nextCell.Value <> curCell.Value Then
??????????????????????
Else
??????????????????????
End If
Loop
End Sub
It cycles through column A and if it finds duplicate entries i then want to move both cell contents offset to the C column. And then continue to the end of data in the A column.
Please could someone suggest the code to do this as i have tried resize and allsorts but nothing seems to work !!!!
Hope this makes sense!!
I am using this code:
Sub insertRows()
ActiveSheet.Range("A1").Select
Do Until IsEmpty(ActiveCell)
Set curCell = ActiveCell
Set nextCell = ActiveCell.Offset(1, 0)
If nextCell.Value <> curCell.Value Then
??????????????????????
Else
??????????????????????
End If
Loop
End Sub
It cycles through column A and if it finds duplicate entries i then want to move both cell contents offset to the C column. And then continue to the end of data in the A column.
Please could someone suggest the code to do this as i have tried resize and allsorts but nothing seems to work !!!!
Hope this makes sense!!