newyorkpaulie
New Member
- Joined
- Dec 1, 2002
- Messages
- 34
I'm trying to replace Null Characters in some data I have imported. The null characters show up as a small black rectangle in the cell.
I tried "edit / replace" but could not figures out how to get a "null character" in the "find what" box. It doesn't seem that you can copy/paste it in.
Also tried the following VB Code.
That does not work either.
Anyone know how to do this?
Sub ReplaceNull()
Null_Character = Chr(0)
Selection.Replace What:=Null_Character, Replacement:="xxxzzz", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
End Sub
I tried "edit / replace" but could not figures out how to get a "null character" in the "find what" box. It doesn't seem that you can copy/paste it in.
Also tried the following VB Code.
That does not work either.
Anyone know how to do this?
Sub ReplaceNull()
Null_Character = Chr(0)
Selection.Replace What:=Null_Character, Replacement:="xxxzzz", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
End Sub