返回首页
当前位置: 主页 > Word教程 > Word2003教程 >

在word中批量删除英文空格的宏代码

时间:2012-09-06 16:40来源:Office教程学习网 www.office68.com编辑:麦田守望者

Sub 批量删除英文空格()
'
' 批量删除英文空格 宏
'
'
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 word2010 word2007 word2003 word教程 word技巧 word2010教程 word2010技巧
------分隔线----------------------------
推荐内容
猜你感兴趣