Remove last character from all data

J

JR

I have a report that a system is auto generating. The report adds
some kind of character at the end of each entry that I need a macro
that can be run to remove it from ALL data in the spreadsheet. It is
not a space as doing a replace on space with nothing doesn't get rid
of it. The easiest way would be to just parse the whole spreadsheet
removing the last character from the whole spreadsheet as it's that
way everywhere so removing the last character would not damage the
data. Any help with this?

Thanks.

JR
 
J

JR

Figured it out:

Sub fixme()
Selection.Replace What:=Chr(160), Replacement:="", LookAt:=xlPart,
_
SearchOrder:=xlByRows, MatchCase:=False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top