当前位置:首页经验技巧Word经验word办公

word怎么首行缩进为0

2024-07-03 13:11:32

1.一级标题缩进设置为0字符不起作用?office

Sub 前123级标题() '测试结果 1 代码重复运行1次才能调整好。

Selection。HomeKey wdStory '光标移到最前面。

Dim p As Paragraph For Each p In ActiveDocument。 Paragraphs If p。

Style = "标题 1" Then p。LeftIndent = 0 '段落的绝对左缩进量(以磅为单位) If p。

Style = "标题 1" Then p。 RightIndent = 0 '段落的绝对左缩进量(以磅为单位) If p。

Style = "标题 1" Then p。FirstLineIndent = CentimetersToPoints(0) '首行缩进0cm(只对单位是cm的缩进有效) If p。

Style = "标题 1" Then p。 = 0 '首行缩进0磅(只对单位是磅的缩进有效) If p。

Style = "标题 2" Then p。 LeftIndent = 0 '段落的绝对左缩进量(以磅为单位) If p。

Style = "标题 2" Then p。RightIndent = 0 '段落的绝对左缩进量(以磅为单位) If p。

Style = "标题 2" Then p。FirstLineIndent = CentimetersToPoints(0) '首行缩进0cm(只对单位是cm的缩进有效) If p。

Style = "标题 2" Then p。 = 0 '首行缩进0磅(只对单位是磅的缩进有效) If p。

Style = "标题 3" Then p。LeftIndent = 0 '段落的绝对左缩进量(以磅为单位) If p。

Style = "标题 3" Then p。RightIndent = 0 '段落的绝对左缩进量(以磅为单位) If p。

Style = "标题 3" Then p。FirstLineIndent = CentimetersToPoints(0) ' '首行缩进0cm If p。

Style = "标题 3" Then p。 = 0 '首行缩进0磅(只对单位是磅的缩进有效) If p。

Style = "标题 1" Then p。FirstLineIndent = CentimetersToPoints(0) '首行缩进0cm(只对单位是cm的缩进有效) If p。

Style = "标题 1" Then p。 = 0 '首行缩进0磅(只对单位是磅的缩进有效) If p。

Style = "标题 2" Then p。FirstLineIndent = CentimetersToPoints(0) '首行缩进0cm(只对单位是cm的缩进有效) If p。

Style = "标题 2" Then p。 = 0 '首行缩进0磅(只对单位是磅的缩进有效) If p。

Style = "标题 3" Then p。FirstLineIndent = CentimetersToPoints(0) ' '首行缩进0cm If p。

Style = "标题 3" Then p。 = 0 '首行缩进0磅(只对单位是磅的缩进有效) Next Selection。

Move ' If p。Style = "标题 1" Then p。

Range。Font。

Color = vbBlack 'blue ' If p。Style = "标题 1" Then p。

Format。LineSpacingRule = wdLineSpaceExactly '行距固定值 ' If p。

Style = "标题 1" Then p。Format。

LineSpacing = 20 '行距固定值= 20 ' If p。 Style = "标题 1" Then p。

Format。SpaceBefore = 0 '段前距为0 ' If p。

Style = "标题 1" Then p。Format。

SpaceAfter = 0 '段后距为0 ' If p。 Style = "标题 1" Then p。

LeftIndent = 0 '段落的绝对左缩进量(以磅为单位) ' If p。Style = "标题 1" Then p。

RightIndent = 0 '段落的绝对右缩进量(以磅为单位) ' If p。 Style = "标题 1" Then p。

Range。Bold = True '加粗 ' If p。

Style = "标题 1" Then p。 = InchesToPoints(0) '度量单位从英寸转换为磅Points Selection。

HomeKey wdStory '光标移到最前面。' D图片居中 End Sub。


电脑版

免责声明:本站信息来自网络收集及网友投稿,仅供参考,如果有错误请反馈给我们更正,对文中内容的真实性和完整性本站不提供任何保证,不承但任何责任,谢谢您的合作。
版权所有:五学知识网 Copyright © 2015-2024 All Rights Reserved .