bill151515
Board Regular
- Joined
- May 19, 2005
- Messages
- 87
i have a column of data that has been presorted ascending.
i have a macro that goes down the column and deletes any duplicate rows
'code'
Set currentcell = Worksheets("IDSort").Range("A1")
Do While Not IsEmpty(currentcell)
Set nextcell = currentcell.Offset(1, 0)
If nextcell.Value = currentcell.Value Then
currentcell.EntireRow.Delete
End If
Set currentcell = nextcell
Loop
this is working fine except that i have some instances of ids that are duplicates (and need to be deleted) but the case is different ex.. 123xx56, 123XX56
is there a way to modify what I have and not have it be case sensative so that 1 of those would be deleted?? or a better way altogether to accompish this???
123
i have a macro that goes down the column and deletes any duplicate rows
'code'
Set currentcell = Worksheets("IDSort").Range("A1")
Do While Not IsEmpty(currentcell)
Set nextcell = currentcell.Offset(1, 0)
If nextcell.Value = currentcell.Value Then
currentcell.EntireRow.Delete
End If
Set currentcell = nextcell
Loop
this is working fine except that i have some instances of ids that are duplicates (and need to be deleted) but the case is different ex.. 123xx56, 123XX56
is there a way to modify what I have and not have it be case sensative so that 1 of those would be deleted?? or a better way altogether to accompish this???
123