• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Reset the table then look for word

kalua1231

Member
How can i get it to reset the Table were it does the sort the words i have, by selecting all and then search for the word. Thank you

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

Dim dccolumn As Integer
Dim dcvalue As String

dccolumn = ActiveCell.Column
dcvalue = ActiveCell.Value

If Application.Intersect(ActiveCell, [headers]) Is Nothing Then

        If ActiveCell.Value <> "" Then
      
         Me.ListObjects(1).Range.AutoFilter Field:=dccolumn + 2, Criteria1:=dcvalue

        End If
  
    End If
  
End Sub
 

Attachments

  • Reset.xlsm
    230 KB · Views: 1
Last edited by a moderator:
This will clear the current Filter
Code:
  ActiveSheet.ShowAllData

This will filter for the selected text in Field 3
Code:
ActiveSheet.ListObjects("Table134").Range.AutoFilter Field:=3, Criteria1:=  Selection.Text
 
You guys rockkkkkkkkkkk!!! thanks that it's exactly what i was looking for thanks a mil Mr. Hui and Mr. Narayank and David
 
Last edited:
Back
Top