Option Explicit Sub Cerca_tramite_filtro_automatico() Dim Cerco As String Dim Crit1 As String Cerco = InputBox("Cerca Numero") If Cerco = "" Then Exit Sub Crit1 = "" & Cerco & "" Range("D1").AutoFilter Field:=1, Criteria1:=Crit1, Operator:=xlAnd If Cells(Rows.Count, 4).End(xlUp).Row = 1 Then MsgBox "Numero non trovato", vbInformation, "Avviso" Foglio1.ShowAllData End Sub