新建
上传
首页
助手
最?/div>
资料?/div>
工具

Sub 

自动编号改为手动编号

() 

ActiveDocument.Content.ListFormat.ConvertNumbersToText 

End Sub 

 

Sub 

批量去除?/p>

() 

ActiveDocument.Content.Fields.Unlink 

End Sub 

 

Sub CenterPara() 

'

绝对居中

(

中国式居?/p>

) 

With Selection.ParagraphFormat 

 

 

 

 

.CharacterUnitFirstLineIndent = 0 

 

 

 

 

.FirstLineIndent = 0 

 

 

 

 

.CharacterUnitLeftIndent = 0 

 

 

 

 

.LeftIndent = 0 

 

 

 

 

.CharacterUnitRightIndent = 0 

 

 

 

 

.RightIndent = 0 

 

 

 

 

.Alignment = wdAlignParagraphCenter 

End With 

End Sub 

 

Sub 

选中所有的表格

() 

 

 

 

Dim tempTable As Table 

 

 

 

 

 

Application.ScreenUpdating = False 

 

 

 

If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then 

 

 

 

 

 

 

 

MsgBox "

文档已保?/p>

+

填写窗体,此时不能选中多个表格

" 

 

 

 

 

 

 

 

 

Exit Sub 

 

 

 

End If 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

For Each tempTable In ActiveDocument.Tables 

 

 

 

 

 

 

 

tempTable.Range.Editors.Add wdEditorEveryone 

 

 

 

Next 

 

 

 

 

 

ActiveDocument.SelectAllEditableRanges wdEditorEveryone 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

 

 

Application.ScreenUpdating = True 

End Sub 

 

Sub 

文本反?/p>

() 

'

对常规文本进行反?/p>

 

Dim myRange As Range, oEditor As Editor 

On Error Resume Next 

If Application.Version < 11 Then 

 

 

 

 

 

 

 

MsgBox "

版本过低?/p>

" 

Ͼλ
新建
上传
首页
助手
最?/div>
资料?/div>
工具

Sub 

自动编号改为手动编号

() 

ActiveDocument.Content.ListFormat.ConvertNumbersToText 

End Sub 

 

Sub 

批量去除?/p>

() 

ActiveDocument.Content.Fields.Unlink 

End Sub 

 

Sub CenterPara() 

'

绝对居中

(

中国式居?/p>

) 

With Selection.ParagraphFormat 

 

 

 

 

.CharacterUnitFirstLineIndent = 0 

 

 

 

 

.FirstLineIndent = 0 

 

 

 

 

.CharacterUnitLeftIndent = 0 

 

 

 

 

.LeftIndent = 0 

 

 

 

 

.CharacterUnitRightIndent = 0 

 

 

 

 

.RightIndent = 0 

 

 

 

 

.Alignment = wdAlignParagraphCenter 

End With 

End Sub 

 

Sub 

选中所有的表格

() 

 

 

 

Dim tempTable As Table 

 

 

 

 

 

Application.ScreenUpdating = False 

 

 

 

If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then 

 

 

 

 

 

 

 

MsgBox "

文档已保?/p>

+

填写窗体,此时不能选中多个表格

" 

 

 

 

 

 

 

 

 

Exit Sub 

 

 

 

End If 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

For Each tempTable In ActiveDocument.Tables 

 

 

 

 

 

 

 

tempTable.Range.Editors.Add wdEditorEveryone 

 

 

 

Next 

 

 

 

 

 

ActiveDocument.SelectAllEditableRanges wdEditorEveryone 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

 

 

Application.ScreenUpdating = True 

End Sub 

 

Sub 

文本反?/p>

() 

'

对常规文本进行反?/p>

 

Dim myRange As Range, oEditor As Editor 

On Error Resume Next 

If Application.Version < 11 Then 

 

 

 

 

 

 

 

MsgBox "

版本过低?/p>

" 

">
新建
上传
首页
助手
最?/div>
资料?/div>
工具

Sub 

自动编号改为手动编号

() 

ActiveDocument.Content.ListFormat.ConvertNumbersToText 

End Sub 

 

Sub 

批量去除?/p>

() 

ActiveDocument.Content.Fields.Unlink 

End Sub 

 

Sub CenterPara() 

'

绝对居中

(

中国式居?/p>

) 

With Selection.ParagraphFormat 

 

 

 

 

.CharacterUnitFirstLineIndent = 0 

 

 

 

 

.FirstLineIndent = 0 

 

 

 

 

.CharacterUnitLeftIndent = 0 

 

 

 

 

.LeftIndent = 0 

 

 

 

 

.CharacterUnitRightIndent = 0 

 

 

 

 

.RightIndent = 0 

 

 

 

 

.Alignment = wdAlignParagraphCenter 

End With 

End Sub 

 

Sub 

选中所有的表格

() 

 

 

 

Dim tempTable As Table 

 

 

 

 

 

Application.ScreenUpdating = False 

 

 

 

If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then 

 

 

 

 

 

 

 

MsgBox "

文档已保?/p>

+

填写窗体,此时不能选中多个表格

" 

 

 

 

 

 

 

 

 

Exit Sub 

 

 

 

End If 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

For Each tempTable In ActiveDocument.Tables 

 

 

 

 

 

 

 

tempTable.Range.Editors.Add wdEditorEveryone 

 

 

 

Next 

 

 

 

 

 

ActiveDocument.SelectAllEditableRanges wdEditorEveryone 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

 

 

Application.ScreenUpdating = True 

End Sub 

 

Sub 

文本反?/p>

() 

'

对常规文本进行反?/p>

 

Dim myRange As Range, oEditor As Editor 

On Error Resume Next 

If Application.Version < 11 Then 

 

 

 

 

 

 

 

MsgBox "

版本过低?/p>

" 

Ͼλ">
Ͼλ
Ŀ

Word几个实用宏解决方?- 百度文库
新建
上传
首页
助手
最?/div>
资料?/div>
工具

Sub 

自动编号改为手动编号

() 

ActiveDocument.Content.ListFormat.ConvertNumbersToText 

End Sub 

 

Sub 

批量去除?/p>

() 

ActiveDocument.Content.Fields.Unlink 

End Sub 

 

Sub CenterPara() 

'

绝对居中

(

中国式居?/p>

) 

With Selection.ParagraphFormat 

 

 

 

 

.CharacterUnitFirstLineIndent = 0 

 

 

 

 

.FirstLineIndent = 0 

 

 

 

 

.CharacterUnitLeftIndent = 0 

 

 

 

 

.LeftIndent = 0 

 

 

 

 

.CharacterUnitRightIndent = 0 

 

 

 

 

.RightIndent = 0 

 

 

 

 

.Alignment = wdAlignParagraphCenter 

End With 

End Sub 

 

Sub 

选中所有的表格

() 

 

 

 

Dim tempTable As Table 

 

 

 

 

 

Application.ScreenUpdating = False 

 

 

 

If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then 

 

 

 

 

 

 

 

MsgBox "

文档已保?/p>

+

填写窗体,此时不能选中多个表格

" 

 

 

 

 

 

 

 

 

Exit Sub 

 

 

 

End If 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

For Each tempTable In ActiveDocument.Tables 

 

 

 

 

 

 

 

tempTable.Range.Editors.Add wdEditorEveryone 

 

 

 

Next 

 

 

 

 

 

ActiveDocument.SelectAllEditableRanges wdEditorEveryone 

 

 

 

 

 

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone 

 

 

 

 

 

Application.ScreenUpdating = True 

End Sub 

 

Sub 

文本反?/p>

() 

'

对常规文本进行反?/p>

 

Dim myRange As Range, oEditor As Editor 

On Error Resume Next 

If Application.Version < 11 Then 

 

 

 

 

 

 

 

MsgBox "

版本过低?/p>

" 



ļ׺.doc޸Ϊ.docĶ

  • 2016-2022йҽO2Oҵרмʮ塱 չǰԤⱨ
  • --ϰ(2)
  • Ƽ-֮ - ڲϰ⼰
  • ڻơϴ
  • ˮƼ
  • Ƽ-֮ - ڲϰ⼰
  • ͨ -  - ҵϰ
  • ̬б
  • лҩоָԭ(һ)
  • ۾ѧÿ²

վ

԰ Ͼλ
ϵͷ779662525#qq.com(#滻Ϊ@)