Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
StevenM[_2_] StevenM[_2_] is offline
external usenet poster
 
Posts: 169
Default Mixed language font size.

Before you run the macro below, you must create a "Chinese" style in your
document. This style must be Character based and not Paragraph based. The
font of this style should be "SimSun." (It is usually best to place your
cursor on Chinese text before creating this style.)

Once the new style has been created, then run my macro. While it is running,
in the bottom left corner you should see two numbers. The first number is the
number of Characters in your document. The second number gives you the number
the macro is on. This will give you a rough idea how long it will take for
the macro to finish.

This macro is very simple. Your document used the SimSun font for Chinese
characters, and other fonts for other characters. So this macro simply looks
for a character using a SimSun font and changes its style from normal to
"Chinese". After this is done, you can change the font size of the Chinese
style to anything you want.

Sub SimSun2ChineseStyle()
Dim nChars As Long
Dim i As Long
Dim oRange As Range

Set oRange = ActiveDocument.Range
nChars = oRange.Characters.Count
For i = 1 To nChars
Application.StatusBar = nChars & ":" & i
If oRange.Characters(i).Font.Name = "SimSun" Then
oRange.Characters(i).Style = "Chinese"
End If
Next i
End Sub

Steven Craig Miller

"tds" wrote:

My word 2007 docx contain a mixture of english, pinyin and chinese mandarin.
Most of the docx are made up of bits that have been cut and pasted from
various sources. I "select all" then make the whole doc have a standard font
size,usually 9. I now want to increase the font size to 16 for all the
chinese characters only. Anyone help me with how to do this?. Thanks in
advance.
--
dtstevenson

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my font and even page size keep changing size in Word 2007 jmoconne Page Layout 1 May 22nd 08 11:14 AM
Font size of footer changes from size set in normal template Islay Trainer Microsoft Word Help 1 September 3rd 07 01:18 PM
The lettering or font size prints smaller than the selected size o kalabjim Microsoft Word Help 1 October 19th 06 05:01 AM
Size of superscript and subscript characters relative to Font size Bob Microsoft Word Help 1 March 25th 05 03:38 AM
set the font type,font size automatically when start up? westley Microsoft Word Help 1 February 19th 05 04:10 PM


All times are GMT +1. The time now is 04:45 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"