Hola de nuevo Edd!
Primero, te pido disculpas por la demora, pero después de varias pruebas creo que lo que quieres es lo siguiente:
Sub copySheet3()
Dim refe$, copFin$, indk$, cellIni$, cellFin$, cellDelIni$, cellDelFin$
cellIni = \"$A$1\"
cellDelIni = \"$A$2\"
indk = \"0Z\"
refe = InputBox(\"Ingrese la referencia de filas: \", \"Referencia\")
If refe = \"\" Then
Exit Sub
Else
ActiveWorkbook.Sheets(\"Sheet1\").Activate
Range(cellIni).Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
cellFin = ActiveCell.Offset(-1, 0).Address
copFin = ActiveCell.Offset(-1, 4).Address
ActiveWorkbook.Names.Add Name:=\"RanCopiado\", RefersToR1C1:=Range(cellIni, copFin)
Application.Goto reference:=\"RanCopiado\"
Selection.Copy
ActiveWorkbook.Sheets(\"Sheet2\").Activate
Range(cellIni).Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteColumnWidths, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveSheet.Paste
Application.CutCopyMode = False
Range(cellIni).Select
ActiveWorkbook.Sheets(\"Sheet1\").Activate
Range(cellIni).Select
ActiveWorkbook.Names.Add Name:=\"RanBusqRef\", RefersToR1C1:=Range(cellIni, cellFin)
With Worksheets(\"Sheet1\").Range(cellIni, cellFin)
Set bkRef = .Find(What:=refe, LookIn:=xlValues)
If Not bkRef Is Nothing Then
Do
bkRef.Value = indk
Set bkRef = .FindNext(bkRef)
Loop While Not bkRef Is Nothing
End If
End With
Application.Goto reference:=\"RanCopiado\"
Selection.Sort Key1:=ActiveCell, Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range(cellDelIni).Select
Do
If ActiveCell = indk Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until ActiveCell <> indk
cellDelFin = ActiveCell.Address
Range(cellDelIni, cellDelFin).Select
Selection.EntireRow.Delete
Range(cellIni).Select
Exit Sub
End If
End Sub
Espero sea lo que buscas, a mí me funcionó a la perfección.
Saludos cordiales.