Below vba code to highlight non-unicode cells, as it make non-unicode to unicode also please suggest
<CODE>
Sub Dimitris2()
Dim cell As Range, weird As Boolean, cnt&
cnt = 0
For Each cell In ActiveSheet.UsedRange
weird = False
If Not IsError(cell) Then
If Len(cell) > 0 Then
Select Case Evaluate("=trim(code(" & cell.Address & "))")
Case 63 ' question mark
weird = True
Case 10 ' new line
weird = True
End Select
If weird Then
cell.Interior.Color = RGB(250, 250, 5)
cnt = cnt + 1
End If
End If
End If
Next
MsgBox cnt & " cells were highlighted."
End Sub
</code>
<CODE>
Sub Dimitris2()
Dim cell As Range, weird As Boolean, cnt&
cnt = 0
For Each cell In ActiveSheet.UsedRange
weird = False
If Not IsError(cell) Then
If Len(cell) > 0 Then
Select Case Evaluate("=trim(code(" & cell.Address & "))")
Case 63 ' question mark
weird = True
Case 10 ' new line
weird = True
End Select
If weird Then
cell.Interior.Color = RGB(250, 250, 5)
cnt = cnt + 1
End If
End If
End If
Next
MsgBox cnt & " cells were highlighted."
End Sub
</code>
Last edited: