I want to be able to filter column A. (with vba for delete what I don’t need)
Example:
- df!gf:mqichgfdcg
- test)2:@1jhbh5@j0
- est@56:)hquct36A
- h@hy.ju:A3)nxhd123QW
- tempghj#b:jkb
- temp234!A:gfgcjhgcj,hgk
- hgdfht:2345vk!
- hgchghc:268678954
- hgchghc:A268678954
I desire filter with these specification:
The filter should start after character
:
(for each cell)There must be at least 10 characters (uppercase, lowercase, numbers, special characters)
https://i.stack.imgur.com/v7ooi.jpg this cells (A:3, A:5, A:7, A:8) don't respects the criterias
- Erase lines that do not respect the criterias.
So i desire delete this cells. https://i.stack.imgur.com/kR40B.jpg
i desire delete each empy cells or lines https://i.stack.imgur.com/aj9qr.jpg
I have this code for delete each empy line
Source : Excel VBA - Delete empty rows Option Explicit
Sub Sample()
Dim i As Long
Dim DelRange As Range
On Error GoTo Whoa
Application.ScreenUpdating = False
For i = 1 To 1000000
If Application.WorksheetFunction.CountA(Range("A" & i & ":" & "B" & i)) = 0 Then
If DelRange Is Nothing Then
Set DelRange = Range("A" & i & ":" & "B" & i)
Else
Set DelRange = Union(DelRange, Range("A" & i & ":" & "B" & i))
End If
End If
Next i
If Not DelRange Is Nothing Then DelRange.Delete shift:=xlUp
LetsContinue:
Application.ScreenUpdating = True
Exit Sub
Whoa:
MsgBox Err.Description
Resume LetsContinue
End Sub