Dim bContinue As Boolean WJJwhr
q?TI(J+/
Dim regEX As New RegExp r{1xjAT
Dim paraCounter As Long '全局段落计数,仅在主程序中可读写,其它过程函数应为只读 vf-cx\y7
\-eDNwJ:#@
Dim LastTitle0String As String, LastTitle0No As Long <>I4wqqb
Dim LastTitle1String As String, LastTitle1No As Long -NuRf#
Dim LastTitle2String As String, LastTitle2No As Long jDKL}x
Dim LastTitle3String As String, LastTitle3No As Long H7&bUt/
Dim LastTitle4String As String, LastTitle4No As Long oy<
q;'
Dim LastTitle5String As String, LastTitle5No As Long O\=c&n~`
Dim LastTabelString As String, LastTableNo As Long eJ2$DgB}t
Dim LastFigureString As String, LastFigureNo As Long (w/)u
KsR^:_e
Dim strSeperator As String ckCb)r_
SGK=WLGM8
Sub ConvertWidth(fTEXT As String, rText As String) DwBKqhu
Selection.Find.ClearFormatting [:xpz,
Selection.Find.Replacement.ClearFormatting R.rxpJ+kU
Selection.Find.Wrap = wdFindContinue b$O1I[o
Me.txtStatus.Text = "转换全角数字字母" & fTEXT & "形式为半角" & rText j 5{"j
DoEvents Z.x9SEe1t
Selection.Find.Execute findtext:=fTEXT, replacewith:=rText, Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue, MatchCase:=True m:4Ec>?e
End Sub *B ]5K{N
o%1dbbh
Sub ClearDomain() $Il
:Yw_
With Selection.Find >||=# ;
.ClearFormatting XeRbn
.Replacement.ClearFormatting uL1$yf'
.Wrap = wdFindContinue aH(B}wh{
Me.txtStatus.Text = "清除所有域代码" =(%+S<}
DoEvents #OE]'k
Ss
.Execute findtext:="^d", replacewith:="", Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue, MatchWildcards:=False tJgo%P1
End With ;VlA~tv
End Sub \
pJB
BG
\&Bvh4Q
Private Sub cmdCheck_Click() W2-1oS~ma
bContinue = True n |Is&fy
Dim NoSeries1(1 To 16) As String d|Q_Z
@;JF
Dim NoSeries2(1 To 16) As String d4[mR~XXT
Dim NoSeries5(1 To 16) As String >ngP\&\
Dim NoSeriesRM(1 To 16) As String !W?6,i -]
Dim paraTotal As Long, ParaText As String LkA_M'G
Dim ttString As String, ttNo As String KB6'sj
}2CVA.Qm!
Dim ShapeCounter As Long, ShapeHeight As Long, ShapeWidth As Long cq-UVk"Gl
u?-
X07_
Me.txtStatus.Visible = True 6Q}WX[| tQ
Me.lbParaType.Visible = True
,R8:Y*@P
Me.cmdCheck.Enabled = False v5Qp[O_
WK)2/$7@
XZ1oV?Z4
/_g-w93
),53(=/hl
Dim ParaType As String, rText As String aW.[3M;?v
+D&aE$<
Selection.WholeStory i*9Bu;
Selection.NoProofing = True -Uu65m~:{k
*~H\#N|x
tm1 = Now p
#DJow
mYRW/8+g
ActiveWindow.View.Type = wdNormalView s4uYp
QO|roE
NoSeries1(1) = "一" y?4%
eD
NoSeries1(2) = "二" 1GA$nFBVC
NoSeries1(3) = "三" H1^m>4ll9
NoSeries1(4) = "四" .*_uXQ
NoSeries1(5) = "五" kEr;p{5
NoSeries1(6) = "六" {iRXK
NoSeries1(7) = "七" F\U^-/0,
NoSeries1(8) = "八" !caY
NoSeries1(9) = "九" y)%CNH)*x
NoSeries1(10) = "十"
$V?h68[c
NoSeries1(11) = "十一" jXCSD@?]K
NoSeries1(12) = "十二" wr+r J
NoSeries1(13) = "十三" }_vUs jK
NoSeries1(14) = "十四" ICxj$b
NoSeries1(15) = "十五" XI"8d.VR
NoSeries1(16) = "十六" }63Qh}_Y
LH_rc
NoSeries2(1) = "㈠" J
g:%|g
NoSeries2(2) = "㈡" I&lb5'6D
NoSeries2(3) = "㈢" X6`F<H`
NoSeries2(4) = "㈣" zFpM\{`[g
NoSeries2(5) = "㈤"
AIK99
NoSeries2(6) = "㈥" wx2EMr
NoSeries2(7) = "㈦" ?9I=XTR
NoSeries2(8) = "㈧" $~s|%>@
NoSeries2(9) = "㈨" Fu;\t
0
NoSeries2(10) = "㈩" d} {d5-_a
e <]^7pz
NoSeries5(1) = "①" B>=NE.ulUL
NoSeries5(1) = "②" ']]5xH*U
NoSeries5(3) = "③" XNd%3r
m,
NoSeries5(4) = "④" We51s^(
NoSeries5(5) = "⑤" Z&w/JP?
NoSeries5(6) = "⑥" 5l]G1+
NoSeries5(7) = "⑦" 34e>R?J
NoSeries5(8) = "⑧" /yhGc}h
NoSeries5(9) = "⑨" L2GUrf
NoSeries5(10) = "⑩" Z'F=Xw6;b
LL
lt9(^d
tITx+i
NoSeriesRM(1) = "I" -o`Eka!ELz
NoSeriesRM(2) = "II" R_|Sg
NoSeriesRM(3) = "III" +^0Q~>=VD
NoSeriesRM(4) = "IV" rz'A#-?'oG
NoSeriesRM(5) = "V" TcjTF|q>
NoSeriesRM(6) = "VI" :e|[gEA
NoSeriesRM(7) = "VII" %4
0uw3
NoSeriesRM(8) = "VIII" `$hna{e^n
NoSeriesRM(9) = "IX" kafRuO~$
NoSeriesRM(10) = "X" Q
(gc(bJV
NoSeriesRM(11) = "XI" %
bpVK~z
NoSeriesRM(12) = "XII" QhqXd
NoSeriesRM(13) = "XIII" oMNgyAp^
NoSeriesRM(14) = "XIV" vvvH5NRm
NoSeriesRM(15) = "XV" dd{pF\a
NoSeriesRM(16) = "XVI" { t1|6R0
_/(7:
i = MsgBox("为了你的数据安全,请使用单独保存的文件副本进行本操作。" & vbCrLf & "确定继续进行吗?", vbYesNo) %hnv
go:^g
^S]-7>Yyr
If i = vbNo Then ML9nfB^z!
Exit Sub "?r=n@Kv
End If 4x;vn8yh
m5w ZS>@
If Me.chkSuper.Value Then @s[Vtw%f
Me.txtStatus.Text = "检查修改所有的上标格式" 6~#$bp^-
G{C27k>wa
CheckSuperScript qT}AY.O%^
czH`a=mjH
End If %DqPRl.Gu
Yc]
If Me.chkStyle.Value Then 8;vpa*
Me.txtStatus.Text = "设置样式,请稍候...." -hjGPu
DoEvents ,dZ&i!@?
CeateOrModifyStyle ~lSdWUk>
End If p#fd+
Vy6A]U\%
GI ~<clhf
xP+HdA2X
ClearDomain HXY,e$c#y
^P|
K2at
iJH;OV;P
%n7mN])
If Me.chkLIST.Value Then ZBX,4kxK7
Me.txtStatus.Text = "将所有自动列表标题转化为人工标题形式" %%-hax.x0X
bU+
z(Eg6
ConvertListToOrdinary Q;EQ8pL?"
End If D;RZE
U!xOJ
:p6.v>s8
Dim pType As String, trimpTEXT As String ImnN&[Cu
If Me.chkNum.Value = True Then N=hhuKt]
Me.txtStatus.Text = "转换全角数字形式为半角" ;WG6|QgV?-
ConvertWidth "1", "1" f:)%+)U<Xm
DoEvents oI/jGyY;
ConvertWidth "2", "2" wy)I6`v
DoEvents Ny
oRp
ConvertWidth "3", "3" 9"%ot=)
DoEvents P*M$^p
ConvertWidth "4", "4" h%0hryGB
DoEvents T+9#&
ConvertWidth "5", "5" xdqiogu e
DoEvents cI
g|sn
ConvertWidth "6", "6" &Fxw19[G
DoEvents &N^^[
uG
ConvertWidth "7", "7" [`'[)B
DoEvents iR`
c/
ConvertWidth "8", "8" (w+dB8)X
DoEvents %?`TyVt&0
ConvertWidth "9", "9" p"lTZ7c:Y
DoEvents qDzd_E@aR
ConvertWidth "0", "0" v\;hI5WY
DoEvents Ln2dD> {2
ConvertWidth "a", "a" B)1.CHV%<
DoEvents O
F|3y~z
ConvertWidth "b", "b" ,cg%t9
DoEvents K$K
6,54y
ConvertWidth "c", "c" f-M 9OI
DoEvents | D?lF
ConvertWidth "d", "d" ?jDdF
DoEvents iCK p"(kf
ConvertWidth "e", "e" icnc5G
DoEvents GNIZHyT(O
ConvertWidth "f", "f" 9~FB^3Nz_
DoEvents NE'4atQ
|
ConvertWidth "g", "g" >^!qxb-
DoEvents e,0y+~
ConvertWidth "h", "h" 5qx,b&^w
DoEvents P{{pp<tX*&
ConvertWidth "i", "i" FSp57W$
DoEvents r'C(+E (
ConvertWidth "j", "j" E$w2SQ
DoEvents '&<T;V%
ConvertWidth "k", "k" /N'|Vs,X
DoEvents Fo0
dz
ConvertWidth "l", "l" k;AV'r
DoEvents >#jfZ5t
ConvertWidth "m", "m" `!t+sX-n
DoEvents !VF.=\iH/
ConvertWidth "n", "n" 9*"Ae0ok1
ConvertWidth "o", "o" O_n) 2t(c?
ConvertWidth "p", "p" :Jz@` s1n
ConvertWidth "q", "q" T9,T'y>BD
ConvertWidth "r", "r" No1*~EQ
ConvertWidth "s", "s" Sjogv
ConvertWidth "t", "t" zURob MpE#
ConvertWidth "u", "u" ^71!.b%
ConvertWidth "v", "v" ^9 g+\W
ConvertWidth "w", "w" |KM<\v(A{
ConvertWidth "x", "x" 4kZ9]5#.
ConvertWidth "y", "y" @\_l%/z{
ConvertWidth "z", "z" T{VdlgL
ConvertWidth "A", "A" )w.\xA~|
ConvertWidth "B", "B" "AAzBWd/
ConvertWidth "C", "C" ^{vf|zZ _
ConvertWidth "D", "D" %#^)hX,+Q
ConvertWidth "E", "E" :W++
`f&
ConvertWidth "F", "F"
pjh o#yP
ConvertWidth "G", "G" K:i{us`
ConvertWidth "H", "H" 0VOj,)K=
ConvertWidth "I", "I" Gxj3/&]^Y
ConvertWidth "J", "J" c,\!<4
ConvertWidth "K", "K" +}u{{
ConvertWidth "L", "L" HalkNR-eEm
ConvertWidth "M", "M" 0!^vQ
ConvertWidth "N", "N" ?3v Oc/2@
ConvertWidth "O", "O" #t^y$9^
ConvertWidth "P", "P"
aeP
6JHj
ConvertWidth "Q", "Q" PN$vBFjm
ConvertWidth "R", "R" rps2sXGr
ConvertWidth "S", "S" ~gjREl,+D#
ConvertWidth "T", "T" 0d%p<c
ConvertWidth "U", "U" f"8!uE*;
ConvertWidth "V", "V"
tmCm54
ConvertWidth "W", "W" 5,pKv
ConvertWidth "X", "X" }E}b/ulg1
ConvertWidth "Y", "Y" h.`U)6*?&N
ConvertWidth "Z", "Z" m)]A$*`<
ConvertWidth "^l", "^p" kDrqV{
_
ConvertWidth "(", "(" D)u 9Y
ConvertWidth ")", ")" `k>h2(@9S
WrS|$: 0
End If RH+'"f
b)5z'zQu
With ActiveDocument U!0 Qf7D
Dim tbl As Table ns{BU->f
For Each tbl In .Tables tc_D8Q_
tbl.Rows.Alignment = wdAlignRowCenter *
t,J4c
tbl.Range.Font.NameFarEast = "楷体" j#`d%eQ~J
tbl.Range.Font.NameAscii = "Times New Roman" _
B5t)7I
tbl.Range.Font.Size = 10.5 K1F,M9 0]
Next e>:bV7h
j~
Set tbl = Nothing .7!n%Ks
End With 7xmyj
y%c
^YpA@`n
d_0r
With ActiveDocument ?-"%%#
`?
X=@
For i = 1 To .TablesOfContents.Count GO=&
.TablesOfContents(i).Delete (($"XOU
Next PhS`,I^Z
J:{$\m'
8, >YB+Hb
-RSPYQjz
paraTotal = .Paragraphs.Count 2!Mwui;%
paraCounter = 1 u)Dh
kF|
#..-!>lY
LastTitle0No = 0 |kUxTe
LastTitle1No = 0 %/86}DCfE?
LastTitle2No = 0 0S{dnp
LastTitle3No = 0 N<xf=a+j
LastTitle4No = 0 5K~kzRL$r
LastTableNo = 0 }Z|uLXaz
LastFigureNo = 0 b`4R`mo
m}x&]">9
Dim Sec As Long T%%+v#+
HhmC+3w.7
Sec = InputBox("正文从第一节开始?", "节设置", 6) `@Q%}J
If Sec = 0 Then
qrFC4\q}
Exit Sub *acN/Ca1
End If ?Q~6\xA
$7#N@7
k = 0 1lxsj{>U
Do While (paraCounter < paraTotal) And bContinue BZXP%{njS
k = k + 1 $9}z^sGIM
If .Paragraphs(paraCounter).Range.Information(wdActiveEndSectionNumber) >= Sec Then 1D,$Az~.
Exit Do Llf |fayq
End If 7*7Z&1*3
paraCounter = paraCounter + 1 HlkG^:)
If k Mod 20 = 0 Then Ew4>+o!
Me.lbCounter.Caption = paraCounter W
hf7J'
DoEvents T@n-^B !Xq
End If 9Yh0'
<Z
Loop ,@_$acm
nbnbG0r:
S_z}h
Do While (paraCounter < paraTotal) And bContinue ?ah<Qf]
wW7W+,{o
ParaText = Trim(.Paragraphs(paraCounter).Range.Text) 7VF^&6
ShapeHeight = 0 m"2KAq61
ShapeWidth = 0 /ry#q%?
x,sMa*vd
CheckPara .Paragraphs(paraCounter).Range, ParaType, rText, ttString, ttNo, ShapeCounter, ShapeHeight, ShapeWidth P(_wT:8C?
Wp0e?bK_
Select Case ParaType {\OIowa
Case "【】表格内容" T:$zNX<f
.Paragraphs(paraCounter).Style = "QLNU表格内容" 6z^Kg~a
Case "章" ,1\nd{
LastTitle0No = LastTitle0No + 1 >bf29tr
'新一章开始,复位其下属标题编号 e7{n=M
LastTitle1No = 0 I[~EQ{Iz
LastTitle2No = 0 O};U3=^0f
LastTitle3No = 0 hSgfp
LastTitle4No = 0 *cdr,AD?lH
Su<Ggv"
k = Val(ttNo) +fgF &.
If k = 0 Then '非数字编号章节 Wdt
9k.hzN
If ttNo <> NoSeries1(LastTitle0No) Then .b4_O
CGg
rText = "第" & NoSeries1(LastTitle0No) & ttString C] <K s
Me.ErrMsg.AddItem "章节编号错误:" & ParaText iY
=M67V
End If 4T-9F
Else x*H4o{o0
If Val(ttNo) <> LastTitle0No Then ~ caKzq
rText = "第" & LastTitle0No & ttString w1J&c' -
Me.ErrMsg.AddItem "章节编号错误:" & ParaText O7#ECUH
End If |g5B==KI
$B6"fYiDk
End If hcw)qB,s
U&fOsx?"
'章段落设置 @j%r6N
'字体大小:三号16磅小三号15磅四号14磅小四号12磅五号10.5磅小五号9磅 _YXk,ME!Q
.Paragraphs(paraCounter).Style = "QLNU章节" `"0#lZ`n
.Paragraphs(paraCounter).Range.Select }lzyl*.
Selection.EndKey unit:=wdLine E^.y$d~ dS
tc = Replace(rText, vbCr, "") gI&& LwT
4
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 1 ", PreserveFormatting:=False ` Nn^
Case "一级标题" `?Pk~7
LastTitle1No = LastTitle1No + 1 {iP^51fy
'新一级标题开始,复位其下属标题编号 /t-m/&>
LastTitle2No = 0 73$^y)AvY
LastTitle3No = 0 y.AF90Q>)
LastTitle4No = 0 H61,pr>
r( _9_%[
If ttNo <> NoSeries1(LastTitle1No) Then KzRw)P
rText = NoSeries1(LastTitle1No) & "、" & ttString or_x0Q
Me.ErrMsg.AddItem "一级标题编号错误:" & ParaText g)*[W>M
End If FhgO5@BO
U!:Q|':=h
yZ[H&>
'一级标题段落设置 格式:一、标题内容 }]pq&v!
.Paragraphs(paraCounter).Range.Text = rText ti:qOSIDTA
.Paragraphs(paraCounter).Style = "QLNU一级标题" ta>:iQa
.Paragraphs(paraCounter).Range.Select wVvk{tS
Selection.EndKey unit:=wdLine 8K!
l X
tc = Replace(rText, vbCr, "") G<kslTPyq
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 1 ", PreserveFormatting:=False 8>Xyz`$kH
Case "二级标题" /r
#.BXP
LastTitle2No = LastTitle2No + 1
f>)k<-<yj
'新二级标题开始,复位其下属标题编号 i|X ;n
LastTitle3No = 0 6#xP[hlR[
LastTitle4No = 0 oYNP,8r^
%nJ^0X_]
If ttNo <> NoSeries1(LastTitle2No) Then s(Of
EzsH=
rText = "(" & NoSeries1(LastTitle2No) & ")" & ttString `}1IQ.3
ErrMsg.AddItem "二级标题编号错误:" & ParaText 3~"G(UP
End If XqVhC
):
DLYk#d: q?
'二级标题段落设置 格式:(一)、标题内容 .:tAZZ
.Paragraphs(paraCounter).Range.Text = rText ]8(_{@/
.Paragraphs(paraCounter).Style = "QLNU二级标题" kji*7a?y
.Od.lxz"mp
.Paragraphs(paraCounter).Range.Select UV%Al)3
Selection.EndKey unit:=wdLine T}(J`{9i
tc = Replace(rText, vbCr, "") 'CT8vt;
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 2 ", PreserveFormatting:=False =T)4Oziks
4@P
H5z
Case "三级标题" bk E4{P"
LastTitle3No = LastTitle3No + 1 Egv (n@1
'新三级标题开始,复位其下属标题编号 >]q{vKCAP
LastTitle4No = 0 LL5n{#)N
Kk2PWJ7
If Val(ttNo) <> LastTitle3No Then )v1n#m,W
rText = LastTitle3No & ". " & ttString 4P@Ak7iL(V
Me.ErrMsg.AddItem "三级标题编号错误:" & ParaText N"2Ire
4,m
aA
End If U2=l; R{
'三级标题段落设置 格式:1. 标题内容 .__X-+^
.Paragraphs(paraCounter).Range.Text = rText ]/!#:
.Paragraphs(paraCounter).Style = "QLNU三级标题" #C1u~db
.Paragraphs(paraCounter).Range.Select _94|^
Selection.EndKey unit:=wdLine etdI:N*x
tc = Replace(rText, vbCr, "") 3^l@!Qw
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 3 ", PreserveFormatting:=False VLW<"7I 6\
Case "四级标题" 0c4H2RW
LastTitle4No = LastTitle4No + 1 -W(O~AK
)s6pOx
Wx
If Val(ttNo) <> LastTitle4No Then x^kV;^ I
rText = "(" & LastTitle4No & "). " & ttString .P\wE";
ErrMsg.AddItem "四级标题编号错误:" & ParaText `;-K/)/x
MXY[t
End If * B!uYP
'四级标题段落设置 格式:(1). 标题内容 oD]tHuDa
.Paragraphs(paraCounter).Range.Text = rText 0
;$[
.Paragraphs(paraCounter).Style = "QLNU四级标题" c&.>SR')
.Paragraphs(paraCounter).Range.Select +
E7s[9/r
Selection.EndKey unit:=wdLine w-?_U7'
tc = Replace(rText, vbCr, "") >3V{I'^^-
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="TC """ & tc & """ \l 4 ", PreserveFormatting:=False DVxW2J
Ml1sE,BT
Case "表格标题" K!6k<
LastTableNo = LastTableNo + 1 g$s"x r`:
Q=lQ y
If ttNo <> CStr(LastTableNo) Then m72r6Yq2@
rText = "表" & LastTableNo & ". " & ttString 4y&%YLMpl
ErrMsg.AddItem "表格编号错误:" & ParaText 3z9}cOFq]z
C- /<5D
j
End If v*'dA^Q
z=>U>
'表格名称段落设置 格式:表1. 表格名称 Al="ss&2
.Paragraphs(paraCounter).Style = "QLNU表格标题" tz-, |n0
xe = Replace(rText, vbCr, "") Tj}H3/2
.Paragraphs(paraCounter).Range.Select )Xxu-/-
Selection.MoveEnd wdCharacter, -1 '选择范围包括行尾的换行符。 z{U2K'
Selection.Range.Text = xe <zE,T@c
Selection.EndKey
DjK:)
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="XE " & """" & xe & """", PreserveFormatting:=False g+oS
bC
&*\wr}a!
Case "表格首行" Uk=jQfA*J
.Paragraphs(paraCounter).Style = "QLNU表格首行" Fyy)665x/
Case "图片标题" 4QODuyl2H
LastFigureNo = LastFigureNo + 1 )(`I1"1
d@~Hp?
If ttNo <> CStr(LastFigureNo) Then h.@5vhD
rText = "图" & LastFigureNo & ". " & ttString mGZ^K,)&OR
ErrMsg.AddItem "表格编号错误:" & ParaText ;^nN!KDjR
?sV0T)uk
End If
,$ L>
'图片名称段落设置 格式:图1. 图名称 >%k:++b{
.Paragraphs(paraCounter).Range.Text = rText Md_S};!QN6
.Paragraphs(paraCounter).Style = "QLNU图片标题" 1w}%>e-S
.Paragraphs(paraCounter).Range.Select 4(>|f_$
Selection.EndKey unit:=wdLine -@{5
u d
xe = Replace(rText, vbCr, "") s86Ij>VLf
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:="XE " & """" & xe & """", PreserveFormatting:=False &U%AVD[
Case "正文" ca/AScL
'正文名称段落设置 hnag<=
.Paragraphs(paraCounter).Style = "QLNU正文" =n>&Bl-Bl
Case "文献条目" xMNUyB{?
With .Paragraphs(paraCounter) ?yop#tjCbY
'.Range.Select [+EmV >Y
'Selection.ClearFormatting /?<o?IR~6
'.Range.Find.Execute findtext:=rText, replacewith:=strSeperator 'Replacetext 传回了编号及分隔符部分, 而StrSeperator传回了正确的格式与分隔符如“[15] ” XnmQp)nyV
.Style = "QLNU参考文献" (055>D6
End With cl
kL)7RQ
Case "图表注解" %
"|I`
m
With .Paragraphs(paraCounter) v0)I rO
.Range.Font.NameFarEast = "楷体" :/
,h)h)|
.Range.Font.NameAscii = "Times New Roman" f0+)%gO{
.Range.Font.Size = 9 '小5号字 c8!q_H~
!t
/I
j ~o
.Alignment = wdAlignParagraphCenter R7u &`
.LeftIndent = 0 {/SUfXq
.RightIndent = 0 vZ[wr@)
.FirstLineIndent = 0
1+|s
.LineSpacing = 12 2mj?&p?
.LineSpacingRule = wdLineSpaceExactly 4SRX@/ #8*
.LineUnitAfter = 0 (27bNKr
.LineUnitBefore = 0 EY
Ni`
.OutlineLevel = wdOutlineLevelBodyText
>5Y%4++(
.PageBreakBefore = False z97RNT|Y7U
.RightIndent = 0 D+G?:mR
.WordWrap = True 4lMf'V7*l
.LineUnitAfter = 0.5 &5:83#*Oj
Nv!If$d
End With *;7~aM
Case Else 9<BC6M_/
'不作处理 !5lb+%7
End Select NuZiLtC
T.\=R
'含有inlineshape的段落处理 ^ Q]I)U
If ShapeHeight > 30 Then c:(Xkzj
.Paragraphs(paraCounter).LineSpacingRule = wdLineSpaceSingle '对有图片的段落设置为单倍行距 *@`Sx'5!
End If +VxzWNs*JP
H/"$#8-/
If (ShapeWidth + ShapeHeight) > 150 Then yO\.dp
.Paragraphs(paraCounter).Style = "QLNU图片段落" &Z!O
End If ayR=GqZ1
]E/^(T-O
'段落计数器递 BEWDTOY[
paraCounter = paraCounter + 1 M4[(.8iE
Me.lbCounter.Caption = "当前检测段落:" & paraCounter KwO;ICdJ
Me.txtStatus.Text = ParaText m{T:<:q~
DoEvents pRyePxCDj)
Loop J:g4ES-/
End With 6
U|An*
*9J>3
msg = "" \
vf&Ldk
IiW*'0H:/
For i = 0 To Me.ErrMsg.ListCount - 1 ?:DeOBAb
msg = msg & vbCrLf & vbCrLf & Me.ErrMsg.List(i) _p0@1 s(U
Next Aw#@}TGT
BZHba8c(
bzYj`t?
}ZaZPB/_}P
Me.txtStatus.Text = "格式化完成!" & vbCrLf & "开始时间:" & tm1 & vbCrLf & "结束时间:" & Now & vbCrLf & msg V0 70oZ
Me.cmdCheck.Enabled = True 9yla &XTD
Me.txtStatus.Visible = True -JgN$Sf
Me.lbParaType.Visible = False
i+r h&,
<y4hK3wP
bContinue = False
XdS&s}J[I
End Sub 4mYJ i#e6x
>@?!-Fy5
Sub CheckPara(ByRef ChKRange As Range, ParaType As String, ReplaceTEXT As String, TitleString As String, TitleNo As String, shpCounter As Long, MaxShpHeight As Long, TotalShpWidth As Long) x_
Y03__/
Dim pTEXT As String Msj(>U&}+
ejs_ ?
pTEXT = ChKRange.Text fCC^hB]'
d)hA'k
ParaType = "其它" =^a Ngq
TitleString = pTEXT *K}h
>b 1
TitleNo = "N/A" Eod'Esye5
klpYtQ
shpCounter = ChKRange.InlineShapes.Count .d
mU
h-
If shpCounter <> 0 Then )LOV)z|}
MaxShpHeight = 0: TotalShpWidth = 0 5dwC~vn}c
For i = 1 To shpCounter :(7icHa
k = ChKRange.InlineShapes(i).Height =+>cTV
l = ChKRange.InlineShapes(i).Width Cn6<I {`\
If k > MaxShpHeight Then `^_c&y K
MaxShpHeight = k p1}umDb%
End If L>xecep
TotalShpWidth = TotalShpWidth + l n{'LF #4l
Next u*n%cXY;J/
If MaxShpHeight > 60 Or TotalShpWidth > 150 Then ~)ut"4
Exit Sub nh"8on]M~
End If Q8d-yJs&
End If 8NP|>uaj
#R^^XG`1
'空行 hbfN1"z
If Len(pTEXT) <= 2 Then E~]37!,\\9
Exit Sub )>-94xx|
End If Lt'FA
:c03"jvYE
M/<>'%sj
'是否为表格中的文字 rnNB!T
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdWithInTable) Then s}w?Dvo \
ParaType = "表格内容" $)or{Z$&
k = ActiveDocument.Paragraphs(paraCounter).Range.Information(wdEndOfRangeRowNumber) z[vHMJ
0
If k = 1 Then ^HiI
ParaType = "表格首行" 3UXaA;
End If Rda~Drz
Exit Sub /i:c!
l9
End If ^:hI bF4G
ULT,>S6r
'例外情况:脚注 \tCxz(vKz
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdInFootnote) Then Xg<R+o
ParaType = "脚注" ^&[Z@*A8#
Exit Sub Go;fQ yG
End If
u9c^:Op
g/3t@7*<
'例外情况:尾注 yyZs[
5Q
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdInEndnote) Then pUV4oyGV
ParaType = "尾注" /Py1Q
Exit Sub 4eD>DW
End If =[_=y=G
I='6>+P
If ActiveDocument.Paragraphs(paraCounter).Range.Information(wdInHeaderFooter) Then pc+'/~
ParaType = "页眉页脚" X0FTD':f
Exit Sub *OM+d$l!
End If G!<-9HA5
;*+wg5|
6j2mr6o
With regEX BQo$c~
.Global = True a8w/#!^34
.:wo
AR
W!
.Pattern = "^第([1-9]|1|2|3|4|5|6|7|8|一|二|三|四|五|六|七|八|九|十)章(、|\.|\s|。|.)+(.{1,30})$" 8u|F
%Sg
If regEX.Test(pTEXT) Then Sv#S_jh
ReplaceTEXT = regEX.Replace(pTEXT, "第$1章 $3") sa?Ul)L2
TitleString = regEX.Replace(pTEXT, "$3") DH IC:6EY
TitleNo = regEX.Replace(pTEXT, "$1") UiE 1TD{
ParaType = "章" W]B75
Exit Sub ==!k99`f,
End If Q0j4c
[\BLb8
.Pattern = "^(十一|十二|十三|十四|十五|十六|一|二|三|四|五|六|七|八|九|十)(、|\.|\s|。|.)+(.{1,40})$" ov$S
If regEX.Test(pTEXT) Then vRI0fDu
ParaType = "一级标题" .X.,.vHx
regEX.Execute (pTEXT) UI]UxEJ
ReplaceTEXT = regEX.Replace(pTEXT, "$1、$3") ?"@`SEdnU2
TitleString = regEX.Replace(pTEXT, "$3") 7gnrLc$]O
TitleNo = regEX.Replace(pTEXT, "$1")
b
fj]Q
Exit Sub aGz$A15#
End If XbaUmCuh
#_pQS}$
'全角或半角括号中的数字 IIh \d.o
.Pattern = "(^\(|()(十一|十二|十三|十四|十五|十六|一|二|三|四|五|六|七|八|九|十)(\)|))(、|\.|\s|。|.)*(.{1,40})$" Fo.p}j+>
If regEX.Test(pTEXT) Then p uOAt
ParaType = "二级标题" i8nzPKF2$3
regEX.Execute (pTEXT) ]@P!Q&V #
ReplaceTEXT = regEX.Replace(pTEXT, "($2)$5") hI6Tp>b*~
TitleString = regEX.Replace(pTEXT, "$5") Z%4w{T+[
TitleNo = regEX.Replace(pTEXT, "$2") Rlwewxmr
Exit Sub 07
E9[U[
End If ^l8&y;-T
wdMVy=SS
'阿拉伯数字 1. 2. n=iL6Yu(
.Pattern = "^([1-9]|1|2|3|4|5|6|7|8|9|0){1,2}(、|\.|\s|。|.)+(.{1,80})$" Bw Cwy
If regEX.Test(pTEXT) Then KAI/*G\z
ParaType = "三级标题" EK 8r V
regEX.Execute (pTEXT) \2#j1/d4
ReplaceTEXT = regEX.Replace(pTEXT, "$1. $3") '未进行全半角转换,如需要可分成两步分别检测
Neb")
TitleString = regEX.Replace(pTEXT, "$3") e8,!x9%J
TitleNo = regEX.Replace(pTEXT, "$1") -\I".8"YE
Exit Sub JIOeDuw+
End If 8M6wc394
VKb=)v[K
'全角或半角括号中的阿拉伯数字 Sv>bU4LHf
.Pattern = "^(^\(|()([0-9]|0|1|2|3|4|5|6|7|8|9){1,2}(\)|))(、|\.|\s|。|.)*(.{1,80})$" :jHDeF.A
If regEX.Test(pTEXT) Then #E
;a;$p
ParaType = "四级标题" _C4N6YdU
regEX.Execute (pTEXT) 'UFPQ
ReplaceTEXT = regEX.Replace(pTEXT, "($2) $5") s2kom)
TitleString = regEX.Replace(pTEXT, "$5") .~AQxsGH
TitleNo = regEX.Replace(pTEXT, "$2") NK!#K>AO
Exit Sub Va-.
End If Ha41Wn'tZ
H"b
}l
f
'表格名称 `:*O8h~i^8
.Pattern = "^表(\d{1,2}-{0,1}\d{0,1})([、|\.|。|.|\s]{1,9})(.{1,120})$" ]_js-+w6
If regEX.Test(pTEXT) Then Cj5=UUnO
ParaType = "表格标题" '7yVvd
regEX.Execute (pTEXT) \$Q?
ReplaceTEXT = Trim(regEX.Replace(pTEXT, "表$1. $3")) Qz4n%|
TitleString = Trim(regEX.Replace(pTEXT, "$3")) [}Z!hq
TitleNo = Trim(regEX.Replace(pTEXT, "$1")) .~Gt=F+`s
strSeperator = Trim(regEX.Replace(pTEXT, "$2")) '不知道为什么,但是发现传回的replacetext在修改Paragraph对象的Range.Text后,表格标题就会落入第一个单元格中,所以,只能用Paragraph.Range.Find.Execute方法替换 ^3O`8o
Exit Sub o |"iW" +
End If 4?',E ddo
:pw6#yi8`
'图片名称 _t-e.2a
v
.Pattern = "^图(\d{1,2}-{0,1}\d{0,1})(、|\.|\s|。|.)+(.{1,120})$" t2Y2v2 J
If regEX.Test(pTEXT) Then :8LK}TY7
ParaType = "图片标题" tO~o-R
regEX.Execute (pTEXT) c2~oPUj
ReplaceTEXT = regEX.Replace(pTEXT, "图$1. $3") 6|10OTVu`
TitleString = regEX.Replace(pTEXT, "$3") `gE_u
TitleNo = regEX.Replace(pTEXT, "$1") H[[#h=r0f
Exit Sub Mh@RO|F
End If _xu_W;nh
2qDyb]9
'参考文献 S4C4_*~Vd
.Pattern = "^([\[|[])(\d+)([]|\]])([、|\.|\s|。|.]{0,1})" '[数字]、 N / Fa^[
If regEX.Test(pTEXT) Then Q&`if
O
ParaType = "文献条目" M
$\!SXL
'ReplaceTEXT = regEX.Replace(pTEXT, "$1$2$3$4") e13' dCG
'TitleNo = regEX.Replace(pTEXT, "[$2] ") f7v|N)
Exit Sub rp_Aw
End If WT '?L{
J`'wprSBb
prfx = Left(pTEXT, 2) s$ZKd
If prfx = "注:" Or prfx = "注:" Then Wagb|B\
ParaType = "图表注解" t2_pwd*B
Exit Sub !.cno&
End If XtftG7r9S
8;<3Tyjzu
j<PpCL_8%
ParaType = "正文" 5J2tR6u-(
Xf%wW[~
End With :TRhk.
End Sub j}aU*p~N
,/Al'
Sub ConvertListToOrdinary() / TAza9a
Dim st As Paragraph ;dquld+q
With ActiveDocument b@
OF
For i = .Paragraphs.Count To 1 Step -1 n0vhc; d
Set st = .Paragraphs(i) k. ?@qCs[
lst = st.Range.ListFormat.ListString ,jJbQIu#
If lst <> "" Then gV;9lpZ2
st.Range.ListFormat.RemoveNumbers .2x`Fj;o1
st.Range.InsertBefore lst & " " 4|/=]w
End If !~-@p?kW/
Next 'M=V{.8U
End With 7CSd}@71\
Set st = Nothing c;doxNd6
End Sub W;QU6z>
qrkJ:
Private Sub UserForm_Activate() qs3V2lvYw{
Me.lbTotal.Caption = "当前文章段落总数:" & ActiveDocument.Paragraphs.Count & " 共" & ActiveDocument.Sections.Count & "节" SGUZ'}
Me.lbTotal.Font.Bold = True n}3fItSJ
Me.txtStatus.Visible = False 1
+9}Xnxb
Me.cmdCheck.Enabled = True d_)VeuE2
x.ucsb
End Sub 2+}hsGnp
DpvMY94Qh
Q+z y\T
Sub CheckSuperScript() *DuP~8
Selection.Find.ClearFormatting J?oEzf;M
Selection.Find.Replacement.ClearFormatting ;6tGRh$b
With Selection.Find Lem:zXj
.Text = "[【\[[〖](*)[】\]〗]]" 8?G534*r@2
.Replacement.Text = "[\1]" O>/&-Wk=
.Replacement.Font.Superscript = True T3In
0LQ
'.Replacement.Font.Color = wdColorBlue jPmp=qg"q
.Forward = True R
:,
|xz
.Wrap = wdFindContinue "#=WD
.FORMAT = True 3)_(t.$D
.MatchCase = False ;3
/*Z5p
.MatchWholeWord = False gn6 @x
.MatchByte = False c+.?
+g
.MatchAllWordForms = False j!/=w q
.MatchSoundsLike = False #OVS]Asn}
.MatchWildcards = True vxl!`$Pi
End With L%31>)8
Selection.Find.Execute Replace:=wdReplaceAll N(Xg#m
End Sub O =\`q6l
H57wzG{xG
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) E=RX^ 3+}
bContinue = False Xr]<v%,C
Set regEX = Nothing n|) JhXQ
End Sub gmdA1$c
E#(dri*#t
Sub CeateOrModifyStyle() a
n|bzG
' s/0~!0
' 9N;y^
Y\
Dim stl As Style j)Y68fKK
2}kJN8\F
Options.Pagination = False UsnIx54D3
x2Dg92
On Error Resume Next
RFT`r
For Each stl In ActiveDocument.Styles B<!WAw+
stl.Delete ?7\$zn)v#
Next +J
<<me4
On Error GoTo 0 :nn(Ndlz9
w~Jy,[@n
Set stl = Nothing UUDZ
uTRFeO>
DoEvents
:\IZ-
On Error Resume Next %^}|HG*i??
W7?f_E\>W
ActiveDocument.Styles.Add Name:="BaseStyle", Type:=wdStyleTypeParagraph g%%j"Cz1
/5j]laYK)
ActiveDocument.Styles.Add Name:="QLNU论文题目", Type:=wdStyleTypeParagraph jI45X22j
ActiveDocument.Styles.Add Name:="QLNU中文摘要", Type:=wdStyleTypeParagraph
cOb,Md
`c /mmS
ActiveDocument.Styles.Add Name:="QLNU英文标题", Type:=wdStyleTypeParagraph
xMD]b
ActiveDocument.Styles.Add Name:="QLNU英文摘要", Type:=wdStyleTypeParagraph >m4HCs>
F~zrg+VDjL
ActiveDocument.Styles.Add Name:="QLNU目录项", Type:=wdStyleTypeParagraph \KkAU 6
ActiveDocument.Styles.Add Name:="QLNU章节标题", Type:=wdStyleTypeParagraph *s (L!+
ActiveDocument.Styles.Add Name:="QLNU一级标题", Type:=wdStyleTypeParagraph %%^by
ActiveDocument.Styles.Add Name:="QLNU二级标题", Type:=wdStyleTypeParagraph 57`9{.HB
ActiveDocument.Styles.Add Name:="QLNU三级标题", Type:=wdStyleTypeParagraph R[f@g;h
ActiveDocument.Styles.Add Name:="QLNU四级标题", Type:=wdStyleTypeParagraph ;\rKkH"K8n
ActiveDocument.Styles.Add Name:="QLNU正文", Type:=wdStyleTypeParagraph YV)h"u+@0
D |9ItxYu
ActiveDocument.Styles.Add Name:="QLNU表格标题", Type:=wdStyleTypeParagraph FSA"U9 w<
ActiveDocument.Styles.Add Name:="QLNU表格首行", Type:=wdStyleTypeParagraph d/l>~%bR
ActiveDocument.Styles.Add Name:="QLNU表格内容", Type:=wdStyleTypeParagraph 6+W`:0je
ActiveDocument.Styles.Add Name:="QLNU图片标题", Type:=wdStyleTypeParagraph `l}+BI`4
ActiveDocument.Styles.Add Name:="QLNU图片段落", Type:=wdStyleTypeParagraph K%(DRkj)
{7+y56[yu
ActiveDocument.Styles.Add Name:="QLNU参考文献", Type:=wdStyleTypeParagraph CNrK]+>
On Error GoTo 0 \) vI-
DoEvents *7^w}v+.
}<mK79m
'BaseStyle 'FwNQz zt
ActiveDocument.Styles("BaseStyle").AutomaticallyUpdate = False 4j}uVGi{e
With ActiveDocument.Styles("BaseStyle").Font 5sguv^;C5
.NameFarEast = "宋体" x|U[|i,;
.NameAscii = "Times New Roman" ^8{:RiN6e~
.NameOther = "宋体" 1wt(pkNk
.Size = 10.5 #mW#K
.Bold = wdUndefined ]=jpqxlx
.Italic = wdUndefined 7|^5E*8/
.Subscript = wdUndefined 1Gh3o}z
.Subscript = wdUndefined 6w*q~{"(
qExmf%q:q
.Underline = wdUnderlineNone 1LonYAHF
.UnderlineColor = wdColorAutomatic N\W4LO6
.StrikeThrough = False DH'0#
.DoubleStrikeThrough = False w/Y6m.i1
E2yL9]K2
.Outline = False 0)E`6s#M
.Emboss = False f~v@;/HL
.Shadow = False "Is0:au+?}
.Hidden = False Ztj~Q 9mu
.SmallCaps = False k/.a
yLq
.AllCaps = False R d>PE=u
.Color = wdColorAutomatic cB|Rj}40v
.Engrave = False 9s`j@B0N57
.Scaling = 100 ILMXWw
.Kerning = 1 F92et<y.
.Animation = wdAnimationNone ??
h4qJ
.DisableCharacterSpaceGrid = False %TS8 9/
.EmphasisMark = wdEmphasisMarkNone GCv*a[8?n
End With qN(,8P\90
With ActiveDocument.Styles("BaseStyle").ParagraphFormat mH5[(?
.LeftIndent = 0 Z{rD4S@
^
.RightIndent = 0 *;Gn od<
.SpaceBefore = 0 taqmtXU=(
.SpaceBeforeAuto = False mFW/xZwR,5
.SpaceAfter = 0 dc%0~Nz
.SpaceAfterAuto = False D5jZ;z}
wSIfqf+y
.LineSpacingRule = wdLineSpaceSingle
g:
,*Y^T
.Alignment = wdAlignParagraphJustify G ,?l
o=m
A
v[|G4n
.WidowControl = False OpxJiu=W
.KeepWithNext = False ~WX40z
.KeepTogether = False Y^9b>H\2
.PageBreakBefore = False yvt
:/X
.NoLineNumber = False =` KV),\
jZP
~!q
.FirstLineIndent = CentimetersToPoints(0) CyV(+KBe_
.OutlineLevel = wdOutlineLevelBodyText 7)
.CharacterUnitLeftIndent = 0 {B)-+0 6
.CharacterUnitRightIndent = 0 ]97`=,OUg
.CharacterUnitFirstLineIndent = 0 FiW>kTM8
.LineUnitBefore = 0 hWfC"0
.LineUnitAfter = 0 7MhN>a;A\
.AutoAdjustRightIndent = True wH0Ks5
.DisableLineHeightGrid = True CZ}%\2>-v
3FhkK/@
.FarEastLineBreakControl = True
a@niig
.WordWrap = True (#5TM1/A
.Hyphenation = False 8bW,.to(?x
!1fAW!8
.HangingPunctuation = True T;Zv^:]0
.HalfWidthPunctuationOnTopOfLine = True Olltu"u
.AddSpaceBetweenFarEastAndAlpha = True K XbD7N.
.AddSpaceBetweenFarEastAndDigit = True \p{$9e;8yT
.BaseLineAlignment = wdBaselineAlignBaseline pPnJf{
End With -:!FQ'/7E
ActiveDocument.Styles("BaseStyle").NoSpaceBetweenParagraphsOfSameStyle = False dr
W}w+!
ActiveDocument.Styles("BaseStyle").ParagraphFormat.TabStops.ClearAll t+%tN^87:
ActiveDocument.Styles("BaseStyle").LanguageID = wdSimplifiedChinese KdU&q+C^
ActiveDocument.Styles("BaseStyle").NoProofing = False HG:9yP<,o
X@up=%(
'一级标题题样式 Ub% 1OQ
ActiveDocument.Styles("QLNU一级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") 8w L%(p
ActiveDocument.Styles("QLNU一级标题").NextParagraphStyle = "BaseStyle" C ehz]C
ActiveDocument.Styles("QLNU一级标题").AutomaticallyUpdate = False Lk:Sju
With ActiveDocument.Styles("QLNU一级标题").Font _~a5;[~
.NameFarEast = "黑体" k!=
jO#)Rd
.NameAscii = "Arial Black" ;vLg4k
.NameOther = "黑体" *8#]3M]
.Name = "黑体" O&ZVu>`g
.Size = 16 '三号 2kV{|`1
.Bold = True 3{R7y
.Italic = wdUndefined Ub| -Q
.Subscript = wdUndefined y -=YX qj
.Superscript = wdUndefined >TB Rp,;r
End With }S}9Pm,:
With ActiveDocument.Styles("QLNU一级标题").ParagraphFormat GK8x<Aq%z
X+;{&Efrl
.LeftIndent = CentimetersToPoints(0) C .{`-RO
.RightIndent = CentimetersToPoints(0) 'c&S%Ra[3G
.FirstLineIndent = CentimetersToPoints(0) I%gDqfdL
s7G!4en
.LineSpacingRule = wdLineSpaceSingle aOK,Mm:iO
.Alignment = wdAlignParagraphCenter
Z
Vj
Hsvu&>[`S
.WidowControl = True c/ s$*"
.KeepWithNext = True '?j,oRz^T
.KeepTogether = True PDtLJt$
.OutlineLevel = wdOutlineLevelBodyText i)mQ?Y#o
!a<}Mpeg
.LineUnitBefore = 0.5 :iVEm9pB)
.LineUnitAfter = 0.5 $5S/~8g(
End With 9#D?wR#J=
ActiveDocument.Styles("QLNU一级标题").NoSpaceBetweenParagraphsOfSameStyle = False rIo)'L$uU
ActiveDocument.Styles("QLNU一级标题").ParagraphFormat.TabStops.ClearAll -wUw)gJbM
ActiveDocument.Styles("QLNU一级标题").LanguageID = wdSimplifiedChinese z57|9$h}w
ActiveDocument.Styles("QLNU一级标题").NoProofing = True HqKI|^
DoEvents 3_cZaru
rWnZ It"
'二级 f<}>*xH/k
ActiveDocument.Styles("QLNU二级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") ?TEdGe\*
ActiveDocument.Styles("QLNU二级标题").NextParagraphStyle = "BaseStyle" J6W
"t
ActiveDocument.Styles("QLNU二级标题").AutomaticallyUpdate = False *hZ{>
With ActiveDocument.Styles("QLNU二级标题").Font YpwMfl4
.NameFarEast = "黑体" PAHkF&
.NameAscii = "Arial Narrow" YDoVm?
.NameOther = "黑体" hB 36o9|9
.Name = "黑体" J sc`^a%`'
.Size = 15 '小三号 fqQ(EVpQ
.Bold = False F` "bMS
.Outline = False RY9h^q*
.Italic = wdUndefined >+E
.Subscript = wdUndefined 0Er;l|
.Superscript = wdUndefined VT~jgsY
End With (J,^)!g7
With ActiveDocument.Styles("QLNU二级标题").ParagraphFormat !3T,{:gyrI
.LeftIndent = CentimetersToPoints(0) :bBMy\(u
.RightIndent = CentimetersToPoints(0) kjOPsz*0
.FirstLineIndent = CentimetersToPoints(0) 'H.,S_v1x
h:l4:{A64
.LineSpacingRule = wdLineSpaceSingle "+GKU)
.Alignment = wdAlignParagraphLeft
MTUJsH\
3,4m|Z2)
.WidowControl = True ._5"FUg
.KeepWithNext = True ( V^C7ix:
.KeepTogether = True +Oa+G.;)o4
.PageBreakBefore = False d-BUdIz
.OutlineLevel = wdOutlineLevelBodyText jZLD^@AP
/C"?Y'
.LineUnitBefore = 0.5 f{j(H?5
.LineUnitAfter = 0.5 oNK-^N?-T
6<N Q/*(/
End With -&3mOn& (1
ActiveDocument.Styles("QLNU二级标题").NoSpaceBetweenParagraphsOfSameStyle = False Y[WL}:"93
ActiveDocument.Styles("QLNU二级标题").ParagraphFormat.TabStops.ClearAll C#Y_La
ActiveDocument.Styles("QLNU二级标题").LanguageID = wdSimplifiedChinese 3D*vNVI
ActiveDocument.Styles("QLNU二级标题").NoProofing = True n\G88)Dv`V
DoEvents A:5B6Z
<oP"kh<D4
'三级标题样式 "Oj2B|:s&
ActiveDocument.Styles("QLNU三级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") .X)TRD#MW
ActiveDocument.Styles("QLNU三级标题").NextParagraphStyle = "BaseStyle" Wp0L!X=0
ActiveDocument.Styles("QLNU三级标题").AutomaticallyUpdate = False e~iPN.'1
With ActiveDocument.Styles("QLNU三级标题").Font &yt
noj1L(
.NameFarEast = "宋体" 6Lhfb\2?
.NameAscii = "Times New Roman" ji:E
.NameOther = "黑体" "- XJZ;5
.Name = "黑体" !3 j@gi2
.Size = 14 '四号 whdoG{/
.Bold = False m#kJ((~
.Outline = False 2\, h "W(
.Italic = wdUndefined syR
+;
.Subscript = wdUndefined \$%q <_l
.Superscript = wdUndefined w=MiJr#3^
End With q;0QI{:5v
With ActiveDocument.Styles("QLNU三级标题").ParagraphFormat }8,[B50
.LeftIndent = CentimetersToPoints(0) ((T0zQ7=
.RightIndent = CentimetersToPoints(0) ~w9.}
.FirstLineIndent = CentimetersToPoints(0) ZuIw4u(9
i!k5P".o^
.LineSpacingRule = wdLineSpaceSingle -D-]tL6w
.Alignment = wdAlignParagraphLeft /ig'p53jL
4~
YPLu
.WidowControl = True 5^ +QTQ
.KeepWithNext = True z=/xv},
.KeepTogether = True
+M %zOX/
.PageBreakBefore = False 9u2Mra
.OutlineLevel = wdOutlineLevelBodyText $Z!7@_Ys
%\ef
Mhn
.CharacterUnitLeftIndent = 0 ?!d\c(5Gt
.CharacterUnitRightIndent = 0 C^W9=OH
.CharacterUnitFirstLineIndent = 2 rW<sQ0
k),!%6\(
.LineUnitBefore = 0.5 o6LZ05Z-&
.LineUnitAfter = 0
~!A*@aC
End With *4oj '}
ActiveDocument.Styles("QLNU三级标题").NoSpaceBetweenParagraphsOfSameStyle = False ;\[el<Y)s
ActiveDocument.Styles("QLNU三级标题").ParagraphFormat.TabStops.ClearAll vE=)qn= a
ActiveDocument.Styles("QLNU三级标题").LanguageID = wdSimplifiedChinese F^bzE5#
ActiveDocument.Styles("QLNU三级标题").NoProofing = True Fo86WP}
DoEvents z0Bw+&
^]}
1p |}=R
'四级标题样式 k,UezuV
ActiveDocument.Styles("QLNU四级标题").BaseStyle = ActiveDocument.Styles("BaseStyle") nm.~~h+8M
ActiveDocument.Styles("QLNU四级标题").NextParagraphStyle = "BaseStyle" B^C!UWN>%X
ActiveDocument.Styles("QLNU四级标题").AutomaticallyUpdate = False G<f"_NT
With ActiveDocument.Styles("QLNU四级标题").Font pz]T9ol~
.NameFarEast = "宋体" 1deNrmp%
.NameAscii = "Times New Roman" 4EtP|
.NameOther = "宋体" ;DXcEzV
.Name = "宋体" Q $5U5hb
.Size = 12 '小四号 >nA6w$
.Bold = True Fs|aH-9\
.Outline = False mx:) &1
.Italic = wdUndefined dD{{G:V
.Subscript = wdUndefined ;[}<xw3):
.Superscript = wdUndefined )of?!>'S[
End With a$K.Or}
With ActiveDocument.Styles("QLNU四级标题").ParagraphFormat *'&mcEpg
u(92y]3,
.LeftIndent = CentimetersToPoints(0) Sgy_?Y
.RightIndent = CentimetersToPoints(0) aO'lk
.FirstLineIndent = CentimetersToPoints(0) asQXl#4r
Pm*N!:u
.LineSpacingRule = wdLineSpaceSingle 8p)*;Y
.Alignment = wdAlignParagraphLeft FPBO=?H.
B}y`E
<
.WidowControl = True 1s@%
q
<
.KeepWithNext = True +o94w^'^$b
.KeepTogether = True alB[/.1
.PageBreakBefore = False 1tMs\e-
.OutlineLevel = wdOutlineLevelBodyText a&*fk ?o
*#n?6KqZ
.CharacterUnitLeftIndent = 0 +>,4d
.CharacterUnitRightIndent = 0 k@i+gV%
.CharacterUnitFirstLineIndent = 2 )1!jv!
sVjM^y24
.LineUnitBefore = 0 ,b/qcu_|-
.LineUnitAfter = 0 Q\ AM]
U
&!E+l<.RF
End With {vL4:K
ActiveDocument.Styles("QLNU四级标题").NoSpaceBetweenParagraphsOfSameStyle = False RV2s@<0p
ActiveDocument.Styles("QLNU四级标题").ParagraphFormat.TabStops.ClearAll X\dPQwas
M
ActiveDocument.Styles("QLNU四级标题").LanguageID = wdSimplifiedChinese o;D[F
ActiveDocument.Styles("QLNU四级标题").NoProofing = True 00d<V:Aoy
DoEvents l0%qj(4`6&
G6?+Qzr
'正文校式 B- `,h
pp
ActiveDocument.Styles("QLNU正文").BaseStyle = ActiveDocument.Styles("BaseStyle") $%
ts#56*
ActiveDocument.Styles("QLNU正文").NextParagraphStyle = "BaseStyle" O%KP,q&}Y
ActiveDocument.Styles("QLNU正文").AutomaticallyUpdate = False 2kS]:4)T
With ActiveDocument.Styles("QLNU正文").Font xct{Tv[FO
hb_J
.Q
.NameFarEast = "宋体" wh~g{(Xvq
.NameAscii = "Times New Roman" r6#It$NU
.NameOther = "宋体" 7Y>17=|
.Name = "宋体" ;[ag|YU$Y
$B3<"
.Size = 12 '小四号 l(CMP!mY
viP.G/(\]
.Bold = wdUndefined t|ih{0
.Italic = wdUndefined snW=9b)m
.Subscript = wdUndefined V&75n.L
.Superscript = wdUndefined $aFCe}3b<
>%o\Ue
.Outline = False \ $PB~-Z
.Emboss = False ,iQRf@#W_b
.Shadow = False p[zKc2 TPk
.Hidden = False O
DLRzk(
{+&qC\YF
.DisableCharacterSpaceGrid = True K Qz.g3,
End With !
&k}YF
With ActiveDocument.Styles("QLNU正文").ParagraphFormat F/ODV=J-
^lp#j;Df
.LeftIndent = CentimetersToPoints(0) ? !dy
.RightIndent = CentimetersToPoints(0) 4%(\y"T
.FirstLineIndent = CentimetersToPoints(0) j
m]d:=4_
{M.OOEcIp
.LineSpacingRule = wdLineSpaceExactly !M&Qca2
.LineSpacing = 20 I!L`W
_
.Alignment = wdAlignParagraphLeft 2{sx"/k\A
*C*'J7
.WidowControl = False yX'f"*
.KeepWithNext = False { vf"`#Q9
.KeepTogether = False TfbB1
.PageBreakBefore = False Wt%+q{
.Hyphenation = False g2&%bNQ-5
Hlr[x
.OutlineLevel = wdOutlineLevelBodyText {H5a.+-(bE
el;ey Ga
s?irT;=
.CharacterUnitLeftIndent = 0 $z>L $,c>
.CharacterUnitRightIndent = 0 "GTlJqhk
.CharacterUnitFirstLineIndent = 2 5ZX P$.
aB N^J_
.LineUnitBefore = 0 H:d@@/
.LineUnitAfter = 0 v|&Nh?r
.SpaceBefore = 0 &`RD5uml
.SpaceAfter = 0 M!9gOAQP
z~S(OM@olJ
.DisableLineHeightGrid = True 4w\@D>@}H
End With XmK2Xi;=b
ActiveDocument.Styles("QLNU正文").NoSpaceBetweenParagraphsOfSameStyle = False M'n2 j
ActiveDocument.Styles("QLNU正文").ParagraphFormat.TabStops.ClearAll ^J
TrytIB
ActiveDocument.Styles("QLNU正文").LanguageID = wdSimplifiedChinese
`|Wu\X
ActiveDocument.Styles("QLNU正文").NoProofing = True 8-2e4^
g(
DoEvents Lcx)wof
I)B+h8l72<
'图片段落样式 c89+}]mGq
ActiveDocument.Styles("QLNU图片段落").BaseStyle = ActiveDocument.Styles("BaseStyle") oVK3=m@{
ActiveDocument.Styles("QLNU图片段落").NextParagraphStyle = "BaseStyle" BXCB/:0
ActiveDocument.Styles("QLNU图片段落").AutomaticallyUpdate = False R.FC3<TTv
With ActiveDocument.Styles("QLNU图片段落").Font srh>"
2."
.Size = 12 '小四号 `k 5'nnyP
.Italic = wdUndefined W@vt6v
.Subscript = wdUndefined sr=~Uq{g
.Superscript = wdUndefined 8)wxc1
End With l.
9
i `
With ActiveDocument.Styles("QLNU图片段落").ParagraphFormat @]r l2Qqe
yFYFFv\?
.LeftIndent = CentimetersToPoints(0) L>&o_bzp
.RightIndent = CentimetersToPoints(0) lD%Fk3
.FirstLineIndent = CentimetersToPoints(0) ;_HG
5}i
GbLuXU
.LineSpacingRule = wdLineSpaceSingle /:YM{,]
.Alignment = wdAlignParagraphCenter 94>EA/+Ek
.KeepWithNext = True ~ryB*eZH
.OutlineLevel = wdOutlineLevelBodyText gtV^6(Y
E=-ed9({:
.CharacterUnitLeftIndent = 0 ^{IF2_h"
.CharacterUnitRightIndent = 0 !6R;fD#^s
.CharacterUnitFirstLineIndent = 0 'K L"i
$E j;CN59
.LineUnitBefore = 0 gB;5&;T:
.LineUnitAfter = 0 (&W&1KT
End With r\+0J`
ActiveDocument.Styles("QLNU图片段落").NoSpaceBetweenParagraphsOfSameStyle = False 5 +Ei!E89
ActiveDocument.Styles("QLNU图片段落").ParagraphFormat.TabStops.ClearAll Cm~Pn"K_]
ActiveDocument.Styles("QLNU图片段落").LanguageID = wdSimplifiedChinese /3VSO"kcZ
ActiveDocument.Styles("QLNU图片段落").NoProofing = True
MYD`P2F
DoEvents 2+2Gl7" s
gyz#:z$p^
h2b,(
'第X章 )dv w.X
ActiveDocument.Styles("QLNU章节标题").BaseStyle = ActiveDocument.Styles("BaseStyle") %a_ rYrL
ActiveDocument.Styles("QLNU章节标题").NextParagraphStyle = "BaseStyle" X#|B*t34
ActiveDocument.Styles("QLNU章节标题").AutomaticallyUpdate = False Q||vU
With ActiveDocument.Styles("QLNU章节标题").Font *Va ;ra(V2
.NameFarEast = "黑体" Q=,6W:j
.NameAscii = "Arial Black" >;$C@
.NameOther = "Arial Black"
xe~lV
.Name = "黑体" Vw^2TRU
.Size = 16 A*$JF>`7
.Bold = True V+A9.KoI
.UnderlineColor = wdColorAutomatic CWTPf1?eB
.Outline = False vpS
&w
.Italic = wdUndefined nD8 Qeem@
.Subscript = wdUndefined g?e$B}%
.Superscript = wdUndefined GV+K]
KDI
.Scaling = 100 t==CdCl
.DisableCharacterSpaceGrid = True qPn}$1+~
End With X3bPBv
With ActiveDocument.Styles("QLNU章节标题").ParagraphFormat O7M8!3Eqm
.LineSpacingRule = wdLineSpaceSingle
?)_?YLi
.Alignment = wdAlignParagraphCenter |8bqn^@$t
.WidowControl = True uX!5G:x]
.KeepWithNext = True [eb?Fd~WB]
.KeepTogether = True &!xePKvO6k
.PageBreakBefore = True / bxu{|.
.OutlineLevel = wdOutlineLevelBodyText pdz_qj!Z
R 2{ kS
.LeftIndent = CentimetersToPoints(0) $j+RUelFY
.RightIndent = CentimetersToPoints(0) PQkFzyk
.FirstLineIndent = CentimetersToPoints(0) o*[n[\cR
)}/ ycTs
.CharacterUnitLeftIndent = 0 EDl*UG83G
.CharacterUnitRightIndent = 0 WS!:w'rzr
.CharacterUnitFirstLineIndent = 0 n0ZrgTVJ
F1Jd-3ei
.LineUnitBefore = 1 R;G"LT
.LineUnitAfter = 0.5 /tG0"1{
X6hp}
.AutoAdjustRightIndent = False
_i/x4,=xv
.DisableLineHeightGrid = True nOH x^(
.FarEastLineBreakControl = True P1r)n{;
.WordWrap = True 8(6(,WwP}
End With prWK U
ActiveDocument.Styles("QLNU章节标题").NoSpaceBetweenParagraphsOfSameStyle = False .qN|.:6a
ActiveDocument.Styles("QLNU章节标题").ParagraphFormat.TabStops.ClearAll SH009@l_8
ActiveDocument.Styles("QLNU章节标题").LanguageID = wdSimplifiedChinese B$Z%_j&
ActiveDocument.Styles("QLNU章节标题").NoProofing = True TbUouoc
DoEvents r+0<A.''a
u{6b>c|,X
'表格标题 .J0Tn,m
ActiveDocument.Styles("QLNU表格标题").BaseStyle = ActiveDocument.Styles("BaseStyle") _5t~g_(1OK
ActiveDocument.Styles("QLNU表格标题").NextParagraphStyle = "BaseStyle" iFJ1}0<(x
ActiveDocument.Styles("QLNU表格标题").AutomaticallyUpdate = False 2@A%;f0Q
With ActiveDocument.Styles("QLNU表格标题").Font k
Y}r^NaQA
.NameFarEast = "楷体" ;*H@E(g
.NameAscii = "Arial" KWq&<X5
.Name = "楷体" /
S
9(rI<'
.Size = 10.5 Y-&SZI4H
.Bold = True u/I|<NAC,
.Underline = wdUnderlineNone DV8b<)
.Italic = wdUndefined
vj_[LFE
.Subscript = wdUndefined Z7="on4
.Superscript = wdUndefined |g$n-t
.Color = wdColorAutomatic k%|Sl>{Ir
End With 5~pQ$-
With ActiveDocument.Styles("QLNU表格标题").ParagraphFormat D('
w<9.
Z8Jrt3l{2
.LineSpacingRule = wdLineSpaceSingle >!U oS
.Alignment = wdAlignParagraphCenter 6SJryf~w
.KeepWithNext = True HGwSsoS
.KeepTogether = True Q{:5gh
.OutlineLevel = wdOutlineLevelBodyText 7gk}f%,3P
;v*J:Mn/=
.LeftIndent = CentimetersToPoints(0) (}#8$ )
.RightIndent = CentimetersToPoints(0) \~(scz$
.FirstLineIndent = CentimetersToPoints(0) (uxe<'Co|
/O^aFIxk
.CharacterUnitLeftIndent = 0 ma gZmY~
.CharacterUnitRightIndent = 0 x$:P;#
.CharacterUnitFirstLineIndent = 0 dr[sSBTY"
Bi
dTrO
.LineUnitBefore = 1 Un~8N
.LineUnitAfter = 0 F3%8E<QZd;
m\0Xh*
End With j_\?ampF
ActiveDocument.Styles("QLNU表格标题").NoSpaceBetweenParagraphsOfSameStyle = False _x2i=SFo*$
ActiveDocument.Styles("QLNU表格标题").ParagraphFormat.TabStops.ClearAll !:GlxmtoW?
ActiveDocument.Styles("QLNU表格标题").LanguageID = wdSimplifiedChinese mw\
z'
ActiveDocument.Styles("QLNU表格标题").NoProofing = True or8`.hEHI
DoEvents 9tMaOm
KkIgyLM
'表格首行 6H #4iMeh
ActiveDocument.Styles("QLNU表格首行").BaseStyle = ActiveDocument.Styles("BaseStyle") |h7 d#V>
ActiveDocument.Styles("QLNU表格首行").AutomaticallyUpdate = False H,{WrWA
With ActiveDocument.Styles("QLNU表格首行").Font Ue=Je~Ri;9
.NameFarEast = "楷体" @{X<|,W9w
.NameAscii = "Times New Roman" G0izZWc
.Name = "楷体" ?_@_NV MY
.Size = 9 jQ"z\}Wf
.Bold = True &c|3v!
.Underline = wdUnderlineNone 2m*g,J?ql
.Italic = wdUndefined kA"|PtrW
.Subscript = wdUndefined ;UAi>//#
.Superscript = wdUndefined Qvx[F:#Tk
End With C)a;zU;9
With ActiveDocument.Styles("QLNU表格首行").ParagraphFormat e2dg{n$6"
.LineSpacingRule = wdLineSpaceSingle XHh
!Q0v;
.Alignment = wdAlignParagraphCenter R/O>^s!Co
pnpx`u;
.LeftIndent = CentimetersToPoints(0) &>xd6-
.RightIndent = CentimetersToPoints(0) \Zgc
[F
.FirstLineIndent = CentimetersToPoints(0) 2}BQ=%E!'
:;g7T -_q
+NT8dd
.CharacterUnitLeftIndent = -0.5 2LTMt?
.CharacterUnitRightIndent = -0.5 L%CBz]`
.CharacterUnitFirstLineIndent = -0.5 +W7#G `>
JQ~[$OGH
.LineUnitBefore = 0 'Zket=Sm;
.LineUnitAfter = 0 }t
FRl
.SpaceBefore = 0 :,@\q0j"=
.SpaceAfter = 0 <y4WG
)ZQ>h{}D
End With Po1/_#mu
ActiveDocument.Styles("QLNU表格首行").NoSpaceBetweenParagraphsOfSameStyle = False v]?zG&Jh
ActiveDocument.Styles("QLNU表格首行").ParagraphFormat.TabStops.ClearAll ]Uu :t
ActiveDocument.Styles("QLNU表格首行").LanguageID = wdSimplifiedChinese 6/=0RTd
ActiveDocument.Styles("QLNU表格首行").NoProofing = True uE]Z,`e
DoEvents l2*o@&.
|b+ZKRW
'表格内容 TSEv^
u)3
ActiveDocument.Styles("QLNU表格内容").BaseStyle = ActiveDocument.Styles("BaseStyle") Dga;GYx
ActiveDocument.Styles("QLNU表格内容").AutomaticallyUpdate = False e*!0|#-
With ActiveDocument.Styles("QLNU表格内容").Font "8#EA<lsS
.NameFarEast = "楷体" }ZKG-~
.NameAscii = "Times New Roman" I;g>r8N-Bu
.Name = "楷体" u(Kof
'p7
.Size = 9 6]^~yby P
.Bold = False Pe,:FIp,
.Underline = wdUnderlineNone i>aIuQ`pe
.Italic = wdUndefined \+T U{vr
.Subscript = wdUndefined y(fJ{k
.Superscript = wdUndefined t9\}!{<s
End With DfsPg':z
With ActiveDocument.Styles("QLNU表格内容").ParagraphFormat I
yPk3N
.LineSpacingRule = wdLineSpaceSingle ,s~d39{
.Alignment = wdAlignParagraphCenter v(`9+*
^Mm sja5K
.LeftIndent = CentimetersToPoints(0) ng6".u9
.RightIndent = CentimetersToPoints(0) QUO'{;,
.FirstLineIndent = CentimetersToPoints(0) 1KMSBLx
xo.k:F
.CharacterUnitLeftIndent = -0.5 %ZR<z$
.CharacterUnitRightIndent = -0.5 Q|7$SS6$
.CharacterUnitFirstLineIndent = -0.5 v[+ ]
.LineUnitBefore = 0 y7ZYo7avg
.LineUnitAfter = 0 B'D\l\w
.SpaceBefore = 0 4/
?@ %
.SpaceAfter = 0 Pea2ENe3
End With @km@\w
ActiveDocument.Styles("QLNU表格首行").NoSpaceBetweenParagraphsOfSameStyle = False U ID0|+%Y
ActiveDocument.Styles("QLNU表格首行").ParagraphFormat.TabStops.ClearAll =H_vRd
ActiveDocument.Styles("QLNU表格首行").LanguageID = wdSimplifiedChinese 7@NV|Idtd
ActiveDocument.Styles("QLNU表格首行").NoProofing = True 5kx-s6`!
DoEvents b9Mp@I7Q-
r^v1_u,1I
'图片标题 ]5',`~jkF
ActiveDocument.Styles("QLNU图片标题").BaseStyle = ActiveDocument.Styles("BaseStyle") 8fSY@
ActiveDocument.Styles("QLNU图片标题").NextParagraphStyle = "BaseStyle" hqW),^\>'
ActiveDocument.Styles("QLNU图片标题").AutomaticallyUpdate = False 4Nl3"@<$
With ActiveDocument.Styles("QLNU图片标题").Font Gpf9uj%
.NameFarEast = "楷体" {~"fq.h!M
.NameAscii = "Times New Roman" Q`m9I
.Name = "楷体" 8n"L4jb(:
.Size = 10.5 xh:A*ZI=7
.Bold = True oWb\T
2!m
.Underline = wdUnderlineNone !Pc&Sg
.Italic = wdUndefined \n<9R8g5
.Subscript = wdUndefined /_[?i"GW
.Superscript = wdUndefined Z4s+8cTHn
.Outline = False pdySip<
.Shadow = False eD,'M
.Color = wdColorAutomatic V]5MIiNl
End With )C>8B`^S
With ActiveDocument.Styles("QLNU图片标题").ParagraphFormat HPc~wX
.LineSpacingRule = wdLineSpaceSingle UGD B4S
.Alignment = wdAlignParagraphCenter L6 IIk
Aryp!oW
.KeepWithNext = wdUndefined WS6;ad;|
.KeepTogether = True
''?iJFR
.OutlineLevel = wdOutlineLevelBodyText !I jU *c@
%}}?Y`/W)
.LeftIndent = CentimetersToPoints(0) 0$B X8?Z
.RightIndent = CentimetersToPoints(0) Kn*LwWne
.FirstLineIndent = CentimetersToPoints(0) PSHzB!
H=n
1'YUK"i
.CharacterUnitLeftIndent = 0 ?ocBR
la
.CharacterUnitRightIndent = 0 NA!?.zn
.CharacterUnitFirstLineIndent = 0 +'0V6\y
7ND4Booul
.LineUnitBefore = 0 VD~
%6AjyN
.LineUnitAfter = 0 v];P| Fi
End With
1}Th@Vq
ActiveDocument.Styles("QLNU图片标题").NoSpaceBetweenParagraphsOfSameStyle = False _lBHZJ+
ActiveDocument.Styles("QLNU图片标题").ParagraphFormat.TabStops.ClearAll 8.zYa(<2
ActiveDocument.Styles("QLNU图片标题").LanguageID = wdSimplifiedChinese FI"KJk'
ActiveDocument.Styles("QLNU图片标题").NoProofing = True g-4j1yJV<
DoEvents *_sSM+S
`>Ms7G9S~e
'目录项 TXS{=
ActiveDocument.Styles("QLNU目录项").BaseStyle = ActiveDocument.Styles("BaseStyle") `rest_vu
ActiveDocument.Styles("QLNU目录项").NextParagraphStyle = "BaseStyle" < #
zd]t
ActiveDocument.Styles("QLNU目录项").AutomaticallyUpdate = False 2 -pv
&
With ActiveDocument.Styles("QLNU目录项").Font
3jx /1VV
.NameFarEast = "黑体" HV=P!v6
.NameAscii = "Times New Roman" +yI2G!
$T9
.NameOther = "Times New Roman" bk|?>yd
.Name = "黑体" "SA*
.Size = 10.5 ?3y>K!D(A
.Bold = False G$[Hm\V
.Italic = wdUndefined qs>&Xn
.Underline = wdUnderlineNone A=+1PgL66
.Color = wdColorAutomatic 8gxo{<,9
.Superscript = wdUndefined {_R{gpj'
.Subscript = wdUndefined Gzc`5n{"
End With &Lbh?C
With ActiveDocument.Styles("QLNU目录项").ParagraphFormat #H]c/
_%wB*u,X
.LineSpacingRule = wdLineSpaceSingle `b KJ
.Alignment = wdAlignParagraphLeft +Kp8X53
69S*\'L
.WidowControl = False )4R[C={
.KeepWithNext = False
:(YFIW`59
.KeepTogether = False g=$nNQ
\6=
.PageBreakBefore = False O$7cN\Z
.NoLineNumber = False zSagsH |W
.OutlineLevel = wdOutlineLevelBodyText .#}A/V.-Y
W1JvLU5L*r
.LeftIndent = CentimetersToPoints(0) .sSbU^U
.RightIndent = CentimetersToPoints(0) AAF']z<4_"
.FirstLineIndent = CentimetersToPoints(0) +xS<^;
+GEdVB
.CharacterUnitLeftIndent = 0 +45.fo
.CharacterUnitRightIndent = 0 YQ>O6:%
.CharacterUnitFirstLineIndent = 0 CT/>x3o
73l,PJ
.LineUnitBefore = 0 c
t@3]
.LineUnitAfter = 0 >mj WC) U
End With
VA
@
ActiveDocument.Styles("QLNU目录项").NoSpaceBetweenParagraphsOfSameStyle = False i1 c[Gk.o
ActiveDocument.Styles("QLNU目录项").ParagraphFormat.TabStops.ClearAll #y
f
ActiveDocument.Styles("QLNU目录项").ParagraphFormat.TabStops.Add Position:=PicasToPoints(44.5), Alignment:=wdAlignTabRight, Leader:=wdTabLeaderMiddleDot n )PqA*
ActiveDocument.Styles("QLNU目录项").LanguageID = wdSimplifiedChinese B9wQ;[gQB
ActiveDocument.Styles("QLNU目录项").NoProofing = True ~U4Cf >
DoEvents :W#?U yo
OHv4Yy]$B
'参考文献 hd W7Qck "
ActiveDocument.Styles("QLNU参考文献").BaseStyle = ActiveDocument.Styles("BaseStyle") QYEGiT
ActiveDocument.Styles("QLNU参考文献").NextParagraphStyle = "BaseStyle" >avkiT2
ActiveDocument.Styles("QLNU参考文献").AutomaticallyUpdate = False 7ufTmz#j<
With ActiveDocument.Styles("QLNU参考文献").Font SB`xr!~A]
.NameFarEast = "宋体" 9
^=kt 2[
.NameAscii = "Times New Roman" d~q7!
.NameOther = "Times New Roman" n-{.7
.Name = "Times New Roman" L]q%;u]8!
.Size = 12 KMx
'(
.Bold = False b!qlucAeE
.Italic = wdUndefined 6OR) 97
.Subscript = wdUndefined kP1cwmZ7F
.Superscript = wdUndefined (
6ucA
.Underline = wdUnderlineNone iD<}r?Z
.UnderlineColor = wdColorAutomatic OQVo4yl"
.Color = wdColorAutomatic ; o(:}d
.Engrave = False VAp
1{
End With OBf$Z"i
With ActiveDocument.Styles("QLNU参考文献").ParagraphFormat X/Ii}X/p
n5y0$S/D
.LineSpacingRule = wdLineSpaceExactly 4
|UtE<<b
.LineSpacing = 16 oA8A
@,-L
.Alignment = wdAlignParagraphLeft g
"N&*V2
.WidowControl = False t$b5,"G1
.KeepWithNext = False %{jL+4veoL
.KeepTogether = False ]GDjR'[z
.PageBreakBefore = False fg/hUUl
.OutlineLevel = wdOutlineLevelBodyText )"](?V
6]mAtA`Y
.LeftIndent = CentimetersToPoints(0) Z&n#*rQ7[
.RightIndent = CentimetersToPoints(0) [Wxf,rW i
.FirstLineIndent = CentimetersToPoints(0) :kC*<f\
J&bMox
.CharacterUnitLeftIndent = 0 )d>Dcne
.CharacterUnitRightIndent = 0 XePGOw))O
.CharacterUnitFirstLineIndent = -2 >`<qa!9
dM-~Qo
.LineUnitBefore = 0 n(.L=VuXn
.LineUnitAfter = 0 =7EkN% V:{
.SpaceBefore = 0 w,j;XPp
.SpaceAfter = 0 z'*{V\
TAq[g|N-;
End With ,BR W=
ActiveDocument.Styles("QLNU参考文献").NoSpaceBetweenParagraphsOfSameStyle = False NZ?dJ"eq7
ActiveDocument.Styles("QLNU参考文献").ParagraphFormat.TabStops.ClearAll )2
b-3lz
ActiveDocument.Styles("QLNU参考文献").LanguageID = wdEnglishUS [#fz[U
ActiveDocument.Styles("QLNU参考文献").NoProofing = True B>[myx
ActiveDocument.Styles("QLNU参考文献").LanguageID = wdSimplifiedChinese 3_>=Cv}
DoEvents EHfB9%O7y
ikO9p|J
' 5lyHg{iqD
ActiveDocument.Styles("QLNU论文题目").BaseStyle = ActiveDocument.Styles("BaseStyle") I|Mw*2U
ActiveDocument.Styles("QLNU论文题目").NextParagraphStyle = "BaseStyle" >3}N;
ActiveDocument.Styles("QLNU论文题目").AutomaticallyUpdate = False Lj/
With ActiveDocument.Styles("QLNU论文题目").Font g9Ty%|Q7(
.NameFarEast = "黑体" u
$B24Cy.
.NameAscii = "Arial Black" 8tO.o\)h
.NameOther = "Arial Black" q.j$]?PQ
.Name = "Arial Black" {"*_++|
.Size = 16 u4'B
.Bold = False U;M! jj
.Italic = wdUndefined
e'p"
gX
.Superscript = wdUndefined $W9dUR0
.Subscript = wdUndefined v3(0Mu0J
.Underline = wdUnderlineNone h+S]C#X,}
.UnderlineColor = wdColorAutomatic |pBvy1e4)
.Color = wdColorAutomatic P0RtS1A
-C8LM ls
End With 3S1{r
)[j
With ActiveDocument.Styles("QLNU论文题目").ParagraphFormat |v<4=/.
.LineSpacingRule = wdLineSpaceSingle 0<##8m@F8
.Alignment = wdAlignParagraphCenter J ~KygQ3%
.WidowControl = True Oc-ia)v1G
.KeepWithNext = True 5RP5%U
.KeepTogether = True \Y`psSf+
.PageBreakBefore = True ge1U1o
.NoLineNumber = False cM\BEhh
.OutlineLevel = wdOutlineLevelBodyText NErvX/qK
AmQsay#I_
.LeftIndent = CentimetersToPoints(0) PS0
/Ok
.RightIndent = CentimetersToPoints(0) %/BBl$~ji
.FirstLineIndent = CentimetersToPoints(0) )-h{0o
,!X:wY}dW
.CharacterUnitLeftIndent = 0 etQS&YzC
.CharacterUnitRightIndent = 0 [Fv_~F491
.CharacterUnitFirstLineIndent = 0 Qwp2h"t`
g?K? Fn.}
.LineUnitBefore = 1 ?
A04qk
.LineUnitAfter = 1 *?VB/yO=0
A|GsbRuy
.BaseLineAlignment = wdBaselineAlignAuto V{~~8b1E
End With w ~^{V4V
ActiveDocument.Styles("QLNU论文题目").NoSpaceBetweenParagraphsOfSameStyle = False 5bd4]1gj
ActiveDocument.Styles("QLNU论文题目").ParagraphFormat.TabStops.ClearAll jUDE)~h
ActiveDocument.Styles("QLNU论文题目").LanguageID = wdEnglishUS BU7QK_zT:
ActiveDocument.Styles("QLNU论文题目").NoProofing = True k=G c#SD5_
ActiveDocument.Styles("QLNU论文题目").LanguageID = wdSimplifiedChinese =dmxE*C
ActiveDocument.Styles("QLNU论文题目").NoProofing = True f0YBy<a
DoEvents V;Q@'<w
0#ON}l)>
'中文摘要 DiZ;FHnaG?
ActiveDocument.Styles("QLNU中文摘要").BaseStyle = ActiveDocument.Styles("BaseStyle") Kjpsz] ;
ActiveDocument.Styles("QLNU中文摘要").NextParagraphStyle = "BaseStyle" [^XD@
ActiveDocument.Styles("QLNU中文摘要").AutomaticallyUpdate = False $`R
=Q
With ActiveDocument.Styles("QLNU中文摘要").Font m)]|mYjju
.NameFarEast = "宋体" !)}D_9{
.NameAscii = "Times New Roman"
4G hg~0
.NameOther = "Times New Roman" :&LV^A
.Name = "Times New Roman" )6eFYt%c
.Size = 12 zy.v[Y1!
.Bold = wdUndefined j,Qb'|f5
.Superscript = wdUndefined Q.\vN-(
.Subscript = wdUndefined O&}R
.Italic = wdUndefined P.(z)!]
.Underline = wdUnderlineNone >FJK$>[1:p
.UnderlineColor = wdColorAutomatic g|h;*
.Color = wdColorAutomatic R]RLy#j
End With ,Ek6X)|@
With ActiveDocument.Styles("QLNU中文摘要").ParagraphFormat 9$}>O]
.LineSpacingRule = wdLineSpaceExactly :XTxrYt28
.LineSpacing = 20 &Aym@G|k?
.Alignment = wdAlignParagraphLeft Ga
V OMT
r{_1M>F
D!
.WidowControl = False 54/ZGaonz
.KeepWithNext = False c8HETs1
.KeepTogether = True wUfPnAD.'
.PageBreakBefore = False $Rn9*OKr
.NoLineNumber = False :9(w~bB9$
.OutlineLevel = wdOutlineLevelBodyText P7REE_<1
EW3--33s
.LeftIndent = CentimetersToPoints(0) e@&2q{Gi=
.RightIndent = CentimetersToPoints(0) P ?96;
.FirstLineIndent = CentimetersToPoints(0) uaxkGEXr
L`fT;2
.CharacterUnitLeftIndent = 0 1_StgFu u
.CharacterUnitRightIndent = 0
9*Fc+/
.CharacterUnitFirstLineIndent = 2 v[R_6
.LineUnitBefore = 0 |CK/-UG}
.LineUnitAfter = 0 t}MT<Jj
f#hmMa
End With B B^81{A
ActiveDocument.Styles("QLNU中文摘要").NoSpaceBetweenParagraphsOfSameStyle = False G^SDB!/@J
ActiveDocument.Styles("QLNU中文摘要").ParagraphFormat.TabStops.ClearAll FI)0.p
ActiveDocument.Styles("QLNU中文摘要").LanguageID = wdEnglishUS 4VkJtu5
ActiveDocument.Styles("QLNU中文摘要").NoProofing = True W .Al\!Gi
ActiveDocument.Styles("QLNU中文摘要").LanguageID = wdSimplifiedChinese z6
h/C{
ActiveDocument.Styles("QLNU中文摘要").NoProofing = True yVJ)JhV
ActiveDocument.Styles("QLNU中文摘要").Frame.Delete 1F+nWc2 b
DoEvents =/ \l=*
6UuM`eu
ActiveDocument.Styles("QLNU英文标题").BaseStyle = ActiveDocument.Styles("BaseStyle") +vPCr&40
ActiveDocument.Styles("QLNU英文标题").NextParagraphStyle = "BaseStyle" ~q}]/0-m
ActiveDocument.Styles("QLNU英文标题").AutomaticallyUpdate = False zy~*~;6tW
With ActiveDocument.Styles("QLNU英文标题").Font AJ6O>Euq
.NameFarEast = "黑体" 238z'I+$G/
.NameAscii = "Arial Narrow" V#c=O}
.Name = "Arial Narrow" @V@<j)3P
.Size = 16 t+j dV
.Bold = True 84s:cO
.Bold = wdUndefined ]eX(K5 A
.Superscript = wdUndefined 2uMSeSx$
.Subscript = wdUndefined IVeA[qA0
.Italic = wdUndefined BZjL\{IW
T( k:\z/
.Underline = wdUnderlineNone mXM U
.UnderlineColor = wdColorAutomatic AboRuHQ
.StrikeThrough = False I;9DG8C&v*
.DoubleStrikeThrough = False E~8J<gE
End With a)6?:nY$
With ActiveDocument.Styles("QLNU英文标题").ParagraphFormat :K(+ KN(
.LineSpacingRule = wdLineSpaceSingle RLGIST`
.Alignment = wdAlignParagraphCenter ZW
5FL-I
.WidowControl = True };*&;GFe
.KeepWithNext = False Xob(4
.KeepTogether = False EJJ&`,q
.PageBreakBefore = False f9'dZ}B
.NoLineNumber = False zOJzQZ~
.FirstLineIndent = CentimetersToPoints(0) M?kXzb\O
.OutlineLevel = wdOutlineLevelBodyText N]GF>kf:
'lgS)m
.LeftIndent = CentimetersToPoints(0) h*sL' fJ]
.RightIndent = CentimetersToPoints(0) 3ZvQUH/{W
.FirstLineIndent = CentimetersToPoints(0) MW=rX>tE
J`wx72/-ZW
.CharacterUnitLeftIndent = 0 s8k4e6ak
.CharacterUnitRightIndent = 0 #jg3Ku;Y
.CharacterUnitFirstLineIndent = 0 $]?M[sL\N7
5z"
X>!?^
.LineUnitBefore = 1 JqEo~]E]
.LineUnitAfter = 1 ;)sC{ "Jb
rKl
End With B<~BX[
ActiveDocument.Styles("QLNU英文标题").NoSpaceBetweenParagraphsOfSameStyle = False
Hq,NOP
ActiveDocument.Styles("QLNU英文标题").ParagraphFormat.TabStops.ClearAll u:,B&}j
ActiveDocument.Styles("QLNU英文标题").LanguageID = wdEnglishUS -&QpQ7q1
ActiveDocument.Styles("QLNU英文标题").NoProofing = True SV^[)p)
ActiveDocument.Styles("QLNU英文标题").LanguageID = wdSimplifiedChinese 7'@~TM
ActiveDocument.Styles("QLNU英文标题").NoProofing = True +Lo,*
ActiveDocument.Styles("QLNU英文标题").Frame.Delete I#W J";kqB
DoEvents ESe$6)P
4X0ku]
ActiveDocument.Styles("QLNU英文摘要").BaseStyle = ActiveDocument.Styles("BaseStyle") ,{Z!T5 |
ActiveDocument.Styles("QLNU英文摘要").NextParagraphStyle = "BaseStyle" !{ORFd
ActiveDocument.Styles("QLNU英文摘要").AutomaticallyUpdate = False EclsOBg
With ActiveDocument.Styles("QLNU英文摘要").Font >-(,BfZ
.NameFarEast = "宋体" 7}tXF
.NameAscii = "Arial" ZZ>(o
d!B
.NameOther = "Arial" <S0gIg`)
.Name = "Arial"
]_4HtcL4
.Size = 12 .;&4'ga
4
.Bold = wdUndefined %y)LBSxf
.Italic = wdUndefined ;|oem\dKv
.Superscript = wdUndefined 5g 2:o^
.Subscript = wdUndefined Nm3CeU
End With y"zZ9HQM
0rc'SEl
With ActiveDocument.Styles("QLNU英文摘要").ParagraphFormat [Fr <tKtB
}jg,[jw_"X
.LineSpacingRule = wdLineSpaceExactly X C'|
.LineSpacing = 20 ^5-SL?E
zZ8:>2Ps(
.Alignment = wdAlignParagraphJustify al4X}
!'=<uU-
.WidowControl = False >
}86#^F
.KeepWithNext = False QVD^p;b
.KeepTogether = False z~;@Mo"*f
.PageBreakBefore = False ?6:e%YT
.NoLineNumber = False Angt=q
IY|>'}UU#
.OutlineLevel = wdOutlineLevelBodyText t5S!j2E
@EH@_EwYV
.LeftIndent = CentimetersToPoints(0) M7neOQHq
.RightIndent = CentimetersToPoints(0) @%6"xnb`
.FirstLineIndent = CentimetersToPoints(0) <ol?9tm
XZ|\|(6Cc
.CharacterUnitLeftIndent = 0 1*B'o<?P1
.CharacterUnitRightIndent = 0 .L_ Hk
.CharacterUnitFirstLineIndent = 2 =AeOkie
_No<fz8
.LineUnitBefore = 0 }`uq:y
.LineUnitAfter = 1 *(nu0
. 3xf!E*
End With RP6hw|
ActiveDocument.Styles("QLNU英文摘要").NoSpaceBetweenParagraphsOfSameStyle = False w.Go]dpK
ActiveDocument.Styles("QLNU英文摘要").ParagraphFormat.TabStops.ClearAll 8ZDWaq8^2N
ActiveDocument.Styles("QLNU英文摘要").LanguageID = wdEnglishUS L#/<y{
ActiveDocument.Styles("QLNU英文摘要").NoProofing = False ES
[]A&tf
DoEvents S2$r 6T
(KT+7j0^
Options.Pagination = True 6H|&HV(!R
Me.txtStatus.Text = "样式修改完成,重新进行分页,请稍候....." {)-3g~
DoEvents ABhQ7
x|
ActiveDocument.Repaginate /qXP\ a
GUsJF;;V
End Sub z-`4DlJUS
>7QC>ws%
<z{,@Z}