Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JR JR is offline
external usenet poster
 
Posts: 8
Default Remove last character from all data

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
JR JR is offline
external usenet poster
 
Posts: 8
Default Remove last character from all data

Figured it out:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove character at end of data Paul B[_3_] Excel Discussion (Misc queries) 8 November 2nd 08 05:13 PM
Remove data that preceeds a character Ty Excel Worksheet Functions 6 October 17th 08 06:59 PM
Remove ' character from copied excel cell to match data Syndrome Excel Discussion (Misc queries) 9 March 7th 07 05:18 PM
Remove character from imported data jimmxz Excel Discussion (Misc queries) 4 February 19th 07 06:13 PM
Remove 255 character limit from OLE DB .NET and Fix Data Corruptio cfrphoto Excel Programming 3 March 29th 05 09:37 AM


All times are GMT +1. The time now is 04:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"