J
Jonathan Vickers
Hi,
I'm trying to get a macro to compare dates in successive rows and then
delete the date in the lower row (i.e. with higher row number) if it is the
same as the date above, but I can't seem to get it to work. My plan was:
For i To BottomRow
If value in (B,i) = value in (B,i-1)
Then delete value in (B,i)
However I can't seem to get this to work.
Any help would be much appreciated,
Jon
I'm trying to get a macro to compare dates in successive rows and then
delete the date in the lower row (i.e. with higher row number) if it is the
same as the date above, but I can't seem to get it to work. My plan was:
For i To BottomRow
If value in (B,i) = value in (B,i-1)
Then delete value in (B,i)
However I can't seem to get this to work.
Any help would be much appreciated,
Jon