I can't figure out why my code won't work. Columns 7-10 are supposed to delete when I run the code.
Columns.PNG
Code:
Dim lngCount As Long
For i = 3 To 12
lngCount = Application.WorksheetFunction.CountA(Columns(i))
If lngCount <= 1 Then Columns(i).EntireColumn.Delete
Next i
Bookmarks