Jump to content
Fórum Script Brasil
  • 0

Filtro por qualquer palavra


pessoal tenho esse filtro mas ele so filtra se eu digitar a primeira palavra, gostaria de deixar o filtro por qualquer palavra... como faço?
Sub Filtro()
Dim base As Range
Dim crt As Range
Dim filtrada As Range
Dim NOME As String
Dim L As Long
Set base = Planilha1.Range("A1").CurrentRegion
Set crt = Planilha1.Range("N1:Y2")
base.AdvancedFilter xlFilterCopy, crt, Planilha5.Range("A1:L1")
L = Planilha5.Range("A1").CurrentRegion.Rows.Count
Set filtrada = _
Planilha5.Range(Planilha5.Cells(2, 1), Planilha5.Cells(L, 12))
NOME = "'" & Planilha5.Name & "'!"
userform1.ListBox1.RowSource = NOME & filtrada.Address
userform1.ListBox1.ColumnHeads = True
If L = 1 Then userform1.ListBox1.ColumnHeads = False
End Sub
Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...