Será que é isso que queria?
Sub sem_retorno()
Application.ScreenUpdating = False
On Error Resume Next
Dim nome As String
Dim result As Integer
nome = ActiveCell.Value
Range("E2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A1").Select
ActiveCell.Offset(1, 0).Select
For i = 2 To 10
result = WorksheetFunction.CountIf(ActiveSheet.Range("A:A"), ActiveCell.Value)
If result = 1 Then
ActiveCell.Offset(0, 2).Value = "1"
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.Offset(1, 0).Select
End If
Next i
Range("C1").Value = "status"
Range("A1").Select
Selection.AutoFilter field:=3, Criteria1:="1", Operator:=xlFilterValues
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("E2").Select
ActiveSheet.Paste
ActiveSheet.ShowAllData
Range("C:C").Value = ""
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Segue plan com o código já funcionando...
Abrç!
___________________________________________________________________________________________
Se a resposta atendeu sua dúvida, por favor, clique no Gostei e marque o Tópico como [Resolvido].
Att.
André Arruda
Postado : 07/10/2017 8:09 am