Eliminar fila después de copiar
Necesito eliminar la fila que fue copiada usando esta macro
Sub CopiarDatos()
'Adriel ortiz
Set h1 = Sheets("Hoja1")
Set h2 = Sheets("Hoja2")
j = h2.Range("H" & Rows.Count).End(xlUp).Row + 1
For i = 3 To h1.Range("H" & Rows.Count).End(xlUp).Row
If h1.Cells(i, "H") = "cerrado" Then
h1.Rows(i).Copy: h2.Range("A" & j).PasteSpecial xlValues
j = j + 1
End If
Next
Application.CutCopyMode = False
MsgBox "Copia Finalizada"
End Sub
Respuesta de Adriel Ortiz Mangia
1
1 respuesta más de otro experto
Respuesta de Dante Amor
3
