Skip to content

Instantly share code, notes, and snippets.

@deyvicode
Last active February 27, 2022 13:18
Show Gist options
  • Save deyvicode/0550f0984cfb5ba28614c2f0365f25db to your computer and use it in GitHub Desktop.
Save deyvicode/0550f0984cfb5ba28614c2f0365f25db to your computer and use it in GitHub Desktop.
Codigo para input busqueda por columna en Excel habilitado para macros
Private Sub BoxSearch_Change()
Dim text As String
If Sheet1.BoxSearch.value <> "" Then
text = "*" & Sheet1.BoxSearch.value & "*"
Range("A3").CurrentRegion.AutoFilter Field:=3, Criteria1:=text
Else
text = ""
Range("A3").CurrentRegion.AutoFilter
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment