在窗口的文本框中输入要找到关键字,如输入“西”,点击“模糊筛选”按钮,就能筛选出第4行(第二列),6行(第三列),7行(备注)包含有“西”字的行.
求“模糊筛选”按钮代码
Dim Filter As String = ""
Dim Val As String = "西"
For each c As col In CurrentTable.Cols
If c.IsString Then
If Filter > "" Then
Filter = Filter & " Or "
End If
Filter = Filter & c.Name & " Like '*" & Val & "*'"
End If
Next
CurrentTable.Filter = Filter