Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

Script to change font of all unicode characters above standard English

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe - 08 May 2006 19:57 GMT
I have a Word document of mixed English and Unicode Greek, including
polytonic Greek characters in the extended range. Right now, the whole
document is set to Times New Roman, but the extended Greek characters
are being font-substituted. I'd like to have a VB macro that will
change all characters in a selection above a certain Unicode range to a
different font.
I'm using Word 2004 Mac if that's relevant.
Help?
Jezebel - 08 May 2006 23:29 GMT
Under Windows, you iterate the characters and use AscW() to get the value:
if greater than 127, you've got a Unicode value. Sadly, to quote the
documentation, --

Visual Basic for the Macintosh does not support Unicode strings. Therefore,
AscW(n) cannot return all Unicode characters for n values in the range of
128 - 65,535, as it does in the Windows environment. Instead, AscW(n)
attempts a "best guess" for Unicode values n greater than 127. Therefore,
you should not use AscW in the Macintosh environment.

>I have a Word document of mixed English and Unicode Greek, including
> polytonic Greek characters in the extended range. Right now, the whole
[quoted text clipped - 4 lines]
> I'm using Word 2004 Mac if that's relevant.
> Help?
Joe - 08 May 2006 23:58 GMT
Well, that's not good. Does it work at all? All I need to do is find
every word that contains at least one character over 127 and change its
style or font.
Jezebel - 09 May 2006 11:03 GMT
Well try it and see what happens. You won't die.

> Well, that's not good. Does it work at all? All I need to do is find
> every word that contains at least one character over 127 and change its
> style or font.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.