現在、このコードを使用して、特定の条件ですべての行を見つけて削除しています...行を削除するのではなく、行を別のワークシートに移動するように編集するにはどうすればよいですか?
Sub Delete_Rows()
Dim selectedValue As Integer
myNum = Application.InputBox("Input Value")
Dim rng As Range, cell As Range, del As Range
Set rng = Intersect(Range("'potlife'!J2:J1500"), ActiveSheet.UsedRange)
For Each cell In rng
If (cell.value) = myNum _
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.EntireRow.Delete
End Sub