Font problem using Selection.TypeText in Word/VBA
- From: "bobotheevildevilclown" <BoboTheEvilDevilClown@xxxxxxxxx>
- Date: 8 Jun 2005 11:37:27 -0700
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
.
- Follow-Ups:
- Re: Font problem using Selection.TypeText in Word/VBA
- From: Programmer Dude
- Re: Font problem using Selection.TypeText in Word/VBA
- Prev by Date: Re: timed event in batch file?
- Next by Date: Re: Consistent "macro" Language
- Previous by thread: Compression ... sort of
- Next by thread: Re: Font problem using Selection.TypeText in Word/VBA
- Index(es):
Relevant Pages
|