I'm completely new to the macros game but I'm a pretty quick learner. Here is my problem:
I have a data sheet with descriptions that include special characters that we can't upload into another system when converted to a .csv file. I've got most of it down to replace copyright symbols with nothing, but quotes and apostrophes are still an issue. Some of my data will look like this:
48" Display
"P2-Cam" Zoom
With "Snagless" 15' cable
What I need is to parse the cells in this column (in my case "C"), and replace " with inch or ' with feet if there is a number proceeding it, but remove it completely if there isn't.
This is what I have written down so far:
Sub RemoveSpecialCharacters()
' Removes Special Characters from cells
'
Columns("C:C").Select
Selection.Replace What:="™", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Columns("C:C").Select
Selection.Replace What:="®", Replacement:="", LookAt:=xlPart, _
SearchOrder:= xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Columns("C:C").Select
Selection.Replace What:="©", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
I realize I could set all spec. characters as an array, but I don't have enough practice with it currently. Some online guides have been helpful, but I need to research more, apparently.
Thanks much!