I'm using the below to move a row from one tab to another, the problem is when it moved it over the formulas change value because they depend on different cells. Can I move values over only? Like a copy paste of the data, no calculation?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Dim Lastrow As Long
Lastrow = Sheets("hires").Cells(Rows.Count, "A").End(xlUp).Row + 1
If Target.Value = "Active" Then
With Rows(Target.Row)
.Copy Destination:=Sheets("hires").Rows(Lastrow)
With Application
.CutCopyMode = False
.EnableEvents = False
End With
.EntireRow.Delete
Application.EnableEvents = True
End With
Application.EnableEvents = False
Application.EnableEvents = True
End If
Application.EnableEvents = True
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
Dim Lastrow As Long
Lastrow = Sheets("hires").Cells(Rows.Count, "A").End(xlUp).Row + 1
If Target.Value = "Active" Then
With Rows(Target.Row)
.Copy Destination:=Sheets("hires").Rows(Lastrow)
With Application
.CutCopyMode = False
.EnableEvents = False
End With
.EntireRow.Delete
Application.EnableEvents = True
End With
Application.EnableEvents = False
Application.EnableEvents = True
End If
Application.EnableEvents = True
End If
End Sub