Unicode Find Question

G

George Lee

Can Unicode be used in the range.Find function?

In this case, the Cyrillic font word is pasted in a textbox (MS Forms 2.0
library) that a range.Find.execute() routine uses as its Find.Text. How do
you assign an entire Unicode word to Find.Text? Word 2003, Windows XP.
 
G

George Lee

Not as I would have thought.

Dim tempString as String
‘Displays as ???, which is fine since the editor doesn’t display Unicode,
the text still is Unicode.
tempString = TextBox1.Text
…
findRange.Find.text = tempString ‘ or findRange.Find.Text = TextBox1.Text ‘
is a problem. The actual find text is “???â€
 
T

Tony Jollans

It works fine for me and I don't know any option that could affect it.

Are you saying it actually finds a string of three question marks? Or finds
nothing? Or what?
 
G

George Lee

D'uh! This was a programming mistake on my part. It does work fine after all.
Thanks.
 

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