删除word文档中所有中文空格的宏代码
时间:2012-09-06 16:39来源:Office教程学习网 www.office68.com编辑:麦田守望者
Sub DEL中文空格()
'
' DEL中文空格 宏
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = " "
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
|
------分隔线----------------------------
标签(Tag):
word技巧
word
word2010
word2007
word2003
word教程
word2010教程
word2010技巧
------分隔线----------------------------