Hello...
I am posting for the first time and hoping for some insight regarding an issue. I have an input file from a client formatted as an "xls" file. My company's application takes that file and processes it in order to return some additional information. We generate an output file that first just parrots back the input columns provided by the client. Generally that's a no brainer, but this time all of those cells have a little character after the text. I just tried to copy it here but it doesn't work. It's a little black diamond with a white question mark in it.
I don't know if it's a special hidden character. If so, I don't know how to get rid of it. It does not display in my input file.
I cannot return the file to the customer this way. Does anyone have any knowledge about this?
Hi JoanneC,
you will find that the are new line markers
"Alt" + "Enter"
which splits data up in a cell into new line within the cell
regards pike
If the solution helped please donate here to the RSPCA
Sites worth visiting;
J&R Solutions - royUK
AJP Excel Information - Andy Pope
Spreadsheet Toolbox
VBA for smarties - snb
Wow!! I am so glad to know that. So can I turn them off or make them not visible like paragraph and space indicators in Word? If I send the file with them visible, will they also be visible to the client?
Thanks so much for your help!
See here...http://en.wikipedia.org/wiki/Unicode...ment_character
It seems to be an unknown character.. You may need to fix the text in the file before importing into excel
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Hi JoanneC
I've used this code in the past to "clean" non-printable characters...see if it works for you. Specify in the code the column(s) you wish to "clean".Option Explicit Sub CleanData() Dim LR As Long Dim i As Long Application.ScreenUpdating = False With ThisWorkbook.ActiveSheet LR = Range("A" & Rows.Count).End(xlUp).Row For i = 1 To LR .Cells(i, 1).Value = Application.Clean(.Cells(i, 1).Value) 'Clean Column A Next i End With With ThisWorkbook.ActiveSheet LR = Range("B" & Rows.Count).End(xlUp).Row For i = 1 To LR .Cells(i, 2).Value = Application.Clean(.Cells(i, 1).Value) 'Clean Column B Next i End With With ThisWorkbook.ActiveSheet LR = Range("C" & Rows.Count).End(xlUp).Row For i = 1 To LR .Cells(i, 3).Value = Application.Clean(.Cells(i, 1).Value) 'Clean Column C Next i End With Application.ScreenUpdating = True End Sub
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks