Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default How do you work with high character numbers?

I've worked with characters such as Chr$(187) and such but now I have
to insert or search/replace a character that has a much higher number
in the mapping, such as Chr$(9674), which is a diamond looking symbol
("lozenge"). Excel errors with such numbers but runs fine with a lower
number.

How can I do a search for Chr$(8482) and replace with Chr$(9674)?

(These character numbers came from seeing them in an insert symbol
macro recording in Word. Character Map shows them as U+2122 and U+25CA
respectively.)

Thanks a bunch,
Melina
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default How do you work with high character numbers?

On Nov 20, 1:45*pm, Mel wrote:
I've worked with characters such as Chr$(187) and such but now I have
to insert or search/replace a character that has a much higher number
in the mapping, such as Chr$(9674), which is a diamond looking symbol
("lozenge"). Excel errors with such numbers but runs fine with a lower
number.

How can I do a search for Chr$(8482) and replace with Chr$(9674)?

(These character numbers came from seeing them in an insert symbol
macro recording in Word. Character Map shows them as U+2122 and U+25CA
respectively.)

Thanks a bunch,
Melina


why wouldn't Replace(Yr_Var, cstr(Chr$(8482)), cstr(Chr$(9674))) work?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default How do you work with high character numbers?

I don't know why it won't work... I can't even get it to compile. Is
this what you were suggesting?

Sub ReplaceChrs()
Replace(range("a1").value, cstr(Chr$(8482)), cstr(Chr$(9674)))
End Sub

I've used other routines and using lower numbers they worked, but
these larger numbers blow it apart and so I'm thinking they must need
something else.

Any insight on this from anyone?

Thanks,
Melina


On Nov 20, 2:04 pm, jason wrote:
why wouldn't Replace(Yr_Var, cstr(Chr$(8482)), cstr(Chr$(9674))) work?



On Nov 20, 1:45*pm, Mel wrote:

I've worked with characters such as Chr$(187) and such but now I have
to insert or search/replace a character that has a much higher number
in the mapping, such as Chr$(9674), which is a diamond looking symbol
("lozenge"). Excel errors with such numbers but runs fine with a lower
number.


How can I do a search for Chr$(8482) and replace with Chr$(9674)?


(These character numbers came from seeing them in an insert symbol
macro recording in Word. Character Map shows them as U+2122 and U+25CA
respectively.)


Thanks a bunch,
Melina



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default How do you work with high character numbers?

I was told to use ChrW$ instead of Chr$ and it worked. Thanks.

-Melina

On Nov 20, 2:27*pm, Mel wrote:
I don't know why it won't work... I can't even get it to compile. Is
this what you were suggesting?

Sub ReplaceChrs()
* * Replace(range("a1").value, cstr(Chr$(8482)), cstr(Chr$(9674)))
End Sub

I've used other routines and using lower numbers they worked, but
these larger numbers blow it apart and so I'm thinking they must need
something else.

Any insight on this from anyone?

Thanks,
Melina

On Nov 20, 2:04 pm, jason wrote:

why wouldn't Replace(Yr_Var, cstr(Chr$(8482)), cstr(Chr$(9674))) work?
On Nov 20, 1:45*pm, Mel wrote:


I've worked with characters such as Chr$(187) and such but now I have
to insert or search/replace a character that has a much higher number
in the mapping, such as Chr$(9674), which is a diamond looking symbol
("lozenge"). Excel errors with such numbers but runs fine with a lower
number.


How can I do a search for Chr$(8482) and replace with Chr$(9674)?


(These character numbers came from seeing them in an insert symbol
macro recording in Word. Character Map shows them as U+2122 and U+25CA
respectively.)


Thanks a bunch,
Melina


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
how to get printed in high ponts in work sheet hanumanth rao Excel Worksheet Functions 1 March 29th 09 10:11 AM
Highlight same part numbers with high price varies among themselv CYNTHIA Excel Discussion (Misc queries) 3 November 5th 07 09:24 PM
Sorting high numbers from low numbers between two rows scotty New Users to Excel 7 February 12th 07 09:38 PM
sort numbers high to low, copy to new cells with associated data. ucastores Excel Worksheet Functions 3 September 3rd 06 02:13 PM
How to create a formula where high and low numbers are excluded [email protected] Excel Discussion (Misc queries) 2 March 6th 05 11:44 PM


All times are GMT +1. The time now is 11:45 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"