Font problem using Selection.TypeText in Word/VBA



I'm writing a word macro that deals with documents with both Hebrew and
Times New Roman fonts. I select the entire text with Selection (see
code below), make some changes, and then write the updated text back
with Selection.TypeText. Unfortunatly when I do this the Hebrew font
is converted to Times New Roman, making what was once hebrew a mangled
mess. How can I preserve multiple fonts when grabbing text with
selection.text/when typing with TypeText.

Code:

Selection.SetRange ActiveDocument.Content.Start,
ActiveDocument.Content.End
wholeDocumentOrig = Selection.Text
....
Selection.TypeText wholeDocumentUpdated

Thanks in advance for any help anyone out there can give me,

-John

.



Relevant Pages

  • Re: Font problem using Selection.TypeText in Word/VBA
    ... > Times New Roman fonts. ... I select the entire text with Selection (see ... Unfortunatly when I do this the Hebrew font ...
    (comp.programming)
  • Re: help with mlterm
    ... I'm trying to get mlterm to work in the way I want for a mixed Hebrew ... I am using anti aliased fonts and have fiddled ... Many terminals have the option to disable bold fonts - ...
    (Debian-User)
  • Re: Problem with Hebrew in Windows XP on laptop from the US
    ... >>(purchased in Israel) is the English version. ... >>localized English version in addition to the Hebrew version? ... That's why you have the fonts. ...
    (microsoft.public.windowsxp.general)
  • Re: Hebrew Fonts Already On Ubuntu OS?
    ... I do a little work with Hebrew and Syriac fonts. ... Usually Plain Text is ...
    (Ubuntu)
  • Re: Win mobile 5.0- different language websites
    ... Hebrew-specific encoding, ... and I can use it in Word to display some Hebrew ... It looks like the Treo 750 uses Windows Mobile 5.0; ... like 10 different types of fonts, without the Hebrew one that I put in,and ...
    (microsoft.public.pocketpc)