Hello,
We have an excel spreadsheet which users fill out and send it to us. We convert that in a CSV file and then send it to Oracle for uploading.
In excel file , we observed that there were some carriage return characters which would create issues while loading the data in oracle tables. so, we wrote following macro
Sub replacer()
Dim MyChar
MyChar = Chr(10)
Worksheets("Sheet1").Columns("A:A").Replace _
What:=MyChar, Replacement:="", _
SearchOrder:=xlByColumns, MatchCase:=True
End sub
which replaces the carriage return from the cells. However, this macro didn't work for the cells which have their text copied from a webpage text area. Users had used enter key in the text area and while they copied the data from text area to excel, it looked like a carriage return key but since it was not removed by the macro, I am not sure which character that is.
Anyone with any possible directions to go about removing those apparent carriage return characters which may not be carriage returns in reality?
Please help,
Thanks so much,
Rohit
We have an excel spreadsheet which users fill out and send it to us. We convert that in a CSV file and then send it to Oracle for uploading.
In excel file , we observed that there were some carriage return characters which would create issues while loading the data in oracle tables. so, we wrote following macro
Sub replacer()
Dim MyChar
MyChar = Chr(10)
Worksheets("Sheet1").Columns("A:A").Replace _
What:=MyChar, Replacement:="", _
SearchOrder:=xlByColumns, MatchCase:=True
End sub
which replaces the carriage return from the cells. However, this macro didn't work for the cells which have their text copied from a webpage text area. Users had used enter key in the text area and while they copied the data from text area to excel, it looked like a carriage return key but since it was not removed by the macro, I am not sure which character that is.
Anyone with any possible directions to go about removing those apparent carriage return characters which may not be carriage returns in reality?
Please help,
Thanks so much,
Rohit