Code:
Sub Move_CenterANDDepart()
Dim rng As Range, cell As Range, del As Range
Set rng = Intersect(Range("C:C"), ActiveSheet.UsedRange)
For Each cell In rng
If (cell.Value) = "Valid" _
Then
If del Is Nothing Then
Set del = cell
Else: Set del = Union(del, cell)
End If
End If
Next cell
On Error Resume Next
del.Offset(-4).Copy
del.Offset(2, -2).PasteSpecial
What this code does is find Valid and copy 4 up cells and paste 2 down and 2 left from cells that contains Valid.
However seems like copying works, but paste does not work at all.
Do you guys have any idea?
thank you
Last edited: