|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 weiyingde 于 2020-1-26 19:48 编辑
目的:要改变诸如“1 Excelhome_Word”之类文字的底纹,可没有效果,不知何故。
Sub 查找并替换指定字符原有的底纹()
Dim tm As Single
tm = Timer
With ActiveDocument.Content.Find
.ClearFormatting
With .Replacement
.ClearFormatting
With .Font
.Name = ""
.ColorIndex = wdBlack
' .Shading.Texture = wdTextureNone
.Shading.ForegroundPatternColor = wdColorPink
End With
End With
.Execute "[0-9]@ Excelhome_Word", , , 1, , , , , 1, "^&", 2
End With
MsgBox "Word共用时" & Timer - tm, vbInformation
End Sub
|
|