PC Review


Reply
Thread Tools Rate Thread

How to check sheet text for UNICODE?

 
 
Jack
Guest
Posts: n/a
 
      1st Aug 2008
Hello,
How to check programmatically if the text used in spreadsheet is
ANSI or UNICODE?
Are there are some Excel properties that indicate that?
Thanks,
Jack


 
Reply With Quote
 
 
 
 
Jack
Guest
Posts: n/a
 
      1st Aug 2008
To explain more.
I use Windows XP PRO English version.
Someone sent me the Excel spreadsheet, which has text written in Hebrew and
sheet's columns start from right to left (I guess the same is regarding the
text).
Looks like everything is in reverse comparing with regular English sheet.
What I need to know is how to programmatically find out that the opened
sheet is not English?
Your comments appreciated,
Jack

"Jack" <replyto@it> wrote in message
news:eDvMli$(E-Mail Removed)...
> Hello,
> How to check programmatically if the text used in spreadsheet is
> ANSI or UNICODE?
> Are there are some Excel properties that indicate that?
> Thanks,
> Jack
>



 
Reply With Quote
 
Jack
Guest
Posts: n/a
 
      1st Aug 2008
Can I use .Language property for that?
How?
Jack

"Jack" <replyto@it> wrote in message
news:eDvMli$(E-Mail Removed)...
> Hello,
> How to check programmatically if the text used in spreadsheet is
> ANSI or UNICODE?
> Are there are some Excel properties that indicate that?
> Thanks,
> Jack
>



 
Reply With Quote
 
Dick Kusleika
Guest
Posts: n/a
 
      2nd Aug 2008
Jack:

I don't know squat about unicode, so these are guesses.

StrConv has a couple of unicode options, but I couldn't get them to work.
You may want to play around with it and see if you can make something useful
out of it. I tried

?activecell.text = StrConv(activecell.text, vbUnicode)

but it always returns false.

Another option I thought of was doing a Find. You could do a Find for
several different unicode characters.

?sheet1.Cells.Find(ChrW$(&H6C49),,xlvalues,xlwhole) is nothing

I put a unicode character in a cell and did this find. I got false. If you
get true, that character doesn't exist. False means it does.

I hope you get something useful out of it.

On Fri, 1 Aug 2008 14:04:11 -0400, "Jack" <replyto@it> wrote:

>To explain more.
>I use Windows XP PRO English version.
>Someone sent me the Excel spreadsheet, which has text written in Hebrew and
>sheet's columns start from right to left (I guess the same is regarding the
>text).
>Looks like everything is in reverse comparing with regular English sheet.
>What I need to know is how to programmatically find out that the opened
>sheet is not English?
>Your comments appreciated,
>Jack
>
>"Jack" <replyto@it> wrote in message
>news:eDvMli$(E-Mail Removed)...
>> Hello,
>> How to check programmatically if the text used in spreadsheet is
>> ANSI or UNICODE?
>> Are there are some Excel properties that indicate that?
>> Thanks,
>> Jack
>>

>

--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check sheet text for UNICODE? Jack Microsoft Excel Discussion 3 2nd Aug 2008 02:37 AM
How do I save a data as non-unicode text in am Excell sheet? aina Microsoft Excel Misc 0 17th Mar 2008 10:31 AM
add a Text Box and a Check Box on a sheet =?Utf-8?B?UmljaGFyZA==?= Microsoft Excel Programming 4 29th Apr 2006 12:46 AM
Check if unicode was installed. m_karbala Microsoft Excel Programming 0 26th Sep 2005 04:20 PM
Unicode character in non-unicode text file =?Utf-8?B?ZGJhbGRp?= Microsoft Dot NET 6 8th Jul 2005 05:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:43 AM.