Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Replacing Printable Ascii Codes

I have a column that contains a text log of search terms entered in a search
box. The column contains the code for the printable ascii characters (like
%20 for space, %24 for $, etc), but does contain the actual alpha/numeric
characters

Is there a function in each that will allow me to change the codes to the
actual characters or will I have to create a massive search and replace macro
for the 34 codes.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Replacing Printable Ascii Codes

Your suggestion about the macro is O.K. It is not massive. Start with:

Sub PercentConverter()
For Each r In ActiveSheet.UsedRange
v = r.Value
v = Application.WorksheetFunction.Substitute(v, "%20", " ")
v = Application.WorksheetFunction.Substitute(v, "%24", "$")
r.Value = v
Next
End Sub

and add the remaining 30 lines of code.
--
Gary''s Student - gsnu201001


"susanmgarrett" wrote:

I have a column that contains a text log of search terms entered in a search
box. The column contains the code for the printable ascii characters (like
%20 for space, %24 for $, etc), but does contain the actual alpha/numeric
characters

Is there a function in each that will allow me to change the codes to the
actual characters or will I have to create a massive search and replace macro
for the 34 codes.

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
Entering ASCII codes with Excel 2003 phuycke Excel Discussion (Misc queries) 2 January 1st 10 06:43 PM
Replacing a list of codes with names Mortir Excel Worksheet Functions 3 May 30th 08 04:06 PM
replacing codes with actual values Arjen Excel Discussion (Misc queries) 1 July 11th 06 05:10 PM
Non-Printable Worksheets J. T. C. Excel Discussion (Misc queries) 1 June 29th 06 02:10 PM
Replacing ascii characters HappyCamper Excel Worksheet Functions 2 February 8th 06 07:10 PM


All times are GMT +1. The time now is 06:39 AM.

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"