I need help for my following issue which I haven't been able to solve.
.
I have a defined text field in my sheet and when entering a text (characters) or numbers (digits) it starts executing (filtering) right away. That takes some time.
Is there a way to define by the user when the vba command should start executing?
The macro i defined is as follow:
Private Sub Suchfeld_Change()
If Sheets("Uebersicht").FilterMode = True Then
Sheets("Uebersicht").ShowAllData
End If
Application.EnableEvents = False
Application.ScreenUpdating = False
Sheets("Uebersicht").Unprotect Password:="XXX"
Sheets("Uebersicht").Cells(2, 2).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(3, 3).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(4, 4).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(5, 5).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(6, 6).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(7, 7).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(8, 8).Value = "*" & Suchfeld.Text & "*"
'Sheets("Uebersicht").Cells(9, 9).Value = "*" & Suchfeld.Text & "*"
'Sheets("Uebersicht").Cells(10, 10).Value = "*" & Suchfeld.Text & "*"
' filtering columns M-U according to search criteria in B1-J10
Sheets("Uebersicht").Columns("M:S").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range _
("B1:J10"), Unique:=False
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
For additional help I can give you the link to my drop box test sheet, where you can see the layout.
Any help is appreciated.
Marc
.
I have a defined text field in my sheet and when entering a text (characters) or numbers (digits) it starts executing (filtering) right away. That takes some time.
Is there a way to define by the user when the vba command should start executing?
The macro i defined is as follow:
Private Sub Suchfeld_Change()
If Sheets("Uebersicht").FilterMode = True Then
Sheets("Uebersicht").ShowAllData
End If
Application.EnableEvents = False
Application.ScreenUpdating = False
Sheets("Uebersicht").Unprotect Password:="XXX"
Sheets("Uebersicht").Cells(2, 2).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(3, 3).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(4, 4).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(5, 5).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(6, 6).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(7, 7).Value = "*" & Suchfeld.Text & "*"
Sheets("Uebersicht").Cells(8, 8).Value = "*" & Suchfeld.Text & "*"
'Sheets("Uebersicht").Cells(9, 9).Value = "*" & Suchfeld.Text & "*"
'Sheets("Uebersicht").Cells(10, 10).Value = "*" & Suchfeld.Text & "*"
' filtering columns M-U according to search criteria in B1-J10
Sheets("Uebersicht").Columns("M:S").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range _
("B1:J10"), Unique:=False
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
For additional help I can give you the link to my drop box test sheet, where you can see the layout.
Any help is appreciated.
Marc