Hi all
I was pointed overhere for this
How can remove strange characters from one column ?
I have found a code that works but it does on all cells
I just need it on one column
I tried searching but could not find anything related
I am a noob with VBA so i hope someone can help me with it
This code is what i already have but i need it for just one cell
[qode]Private Sub Worksheet_Change(ByVal Target As Range)
Cells.Replace what:="@", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="#", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="$", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="%", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="^", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="&", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="(", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=")", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=":", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=";", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="'", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="-", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=" ", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
End Sub
[/code]
ACA - Implement IP Office
ACS - Implement IP Office
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
I was pointed overhere for this
How can remove strange characters from one column ?
I have found a code that works but it does on all cells
I just need it on one column
I tried searching but could not find anything related
I am a noob with VBA so i hope someone can help me with it
This code is what i already have but i need it for just one cell
[qode]Private Sub Worksheet_Change(ByVal Target As Range)
Cells.Replace what:="@", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="#", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="$", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="%", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="^", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="&", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="(", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=")", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=":", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=";", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="'", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:="-", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Cells.Replace what:=" ", Replacement:="", lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
End Sub
[/code]
ACA - Implement IP Office
ACS - Implement IP Office
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!