Zembu
New Member
- Joined
- Apr 9, 2016
- Messages
- 27
- Office Version
- 2016
- Platform
- Windows
Tazguy37 gave a solution to a slightly different question!
He wrote;
Sub deleteSingles()
Dim cell As Range
On Error Resume Next
For Each cell In Cells.SpecialCells(xlCellTypeConstants)
If Len(cell.Value) = 1 Then cell.Delete
Next cell
End Sub
This solution is almost good for me! I want to (not delete but clear contents) of cells containg a single character, and be able to set a specific range to be operated on.
He wrote;
Sub deleteSingles()
Dim cell As Range
On Error Resume Next
For Each cell In Cells.SpecialCells(xlCellTypeConstants)
If Len(cell.Value) = 1 Then cell.Delete
Next cell
End Sub
This solution is almost good for me! I want to (not delete but clear contents) of cells containg a single character, and be able to set a specific range to be operated on.