PC Review


Reply
Thread Tools Rate Thread

Direction problem in inserting strings using right to left language

 
 
Amir
Guest
Posts: n/a
 
      10th Jun 2005
Hi!

I'm trying to use InsertAfter to add string in a right to left language, and
right after it space and number.

The problem is that logically, Word adds the characters in the correct way
(Right to Left Text -> Space -> Number),
But in my view it looks like: (Right to Left Text -> Number -> Space).

I'm using something like:
Selection.InsertAfter "From: " ' "From" is replaced by a word in right to
left language)
Selection.InsertAfter " " & strMyString 'strMyString contains a string which
is actually a number, e.g. "1234"

problem is solved if I type the space manually, but I don't know how to
force VBA to write a "Right To Left" direction when it inserts the space
between the strings.

How can I force VBA to insert the space string in a Right to Left direction,
so that it will 'look' like it's between the two other strings and not just
logically "be" there?

Regards,
Amir.


 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      10th Jun 2005
You post says you are using Word, so maybe better to ask this in a Word
group. This group is for Excel programming questions.

--
Regards,
Tom Ogilvy

"Amir" <(E-Mail Removed)> wrote in message
news:%23Oh1f$(E-Mail Removed)...
> Hi!
>
> I'm trying to use InsertAfter to add string in a right to left language,

and
> right after it space and number.
>
> The problem is that logically, Word adds the characters in the correct way
> (Right to Left Text -> Space -> Number),
> But in my view it looks like: (Right to Left Text -> Number -> Space).
>
> I'm using something like:
> Selection.InsertAfter "From: " ' "From" is replaced by a word in right to
> left language)
> Selection.InsertAfter " " & strMyString 'strMyString contains a string

which
> is actually a number, e.g. "1234"
>
> problem is solved if I type the space manually, but I don't know how to
> force VBA to write a "Right To Left" direction when it inserts the space
> between the strings.
>
> How can I force VBA to insert the space string in a Right to Left

direction,
> so that it will 'look' like it's between the two other strings and not

just
> logically "be" there?
>
> Regards,
> Amir.
>
>



 
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
Problem in inserting strings and numbers using right to left language avi Microsoft Excel Programming 0 12th Jan 2008 07:38 AM
right-to-left language problem. =?Utf-8?B?S2hvc2hyYXZhbg==?= Microsoft Access Getting Started 1 13th Aug 2007 11:35 PM
Right-to-Left direction Ninad Microsoft Excel Worksheet Functions 2 20th Jul 2007 07:35 PM
right to left direction =?Utf-8?B?cmFtemkgc2FsYW1laA==?= Microsoft Outlook Discussion 0 13th May 2007 11:01 PM
Problem when inserting Data using Arabic or Farsi Language Fahad Microsoft ASP .NET 2 27th Dec 2003 10:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 AM.