Dealing with Complex scripts in VBA

R

RUDIK

I use Complex scripts (Hebrew and Arabic) in my MS Word, and the commands
Edit>Find... and the Edit>Replace... work fine.

BUT, when I record a macro that uses these commands, it works only on the
Latin text, and ignores the Complex script fonts.

Does anybody have a solution?

Thanks,
Kdarlaomer

Win2K Pro (SP 4), Word 2002 (Office XP SP 2).
 
K

Klaus Linke

RUDIK said:
I use Complex scripts (Hebrew and Arabic) in my MS Word, and
the commands Edit>Find... and the Edit>Replace... work fine.

BUT, when I record a macro that uses these commands, it works
only on the Latin text, and ignores the Complex script fonts.

Does anybody have a solution?



Hi Kdarlaomer

Searching for a single Hebrew or Arabic character works fine?

I don't have experience with this, but I guess the parameter in .Find that
makes Word aware of text direction (left-to-right/RTL) is

.MatchControl = True

Does it help if you add this line in your "With Selection.Find ..."?

Greetings,
Klaus
 

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