|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Sub text()
- Dim i%, str$, j%
- With ActiveDocument
- For i = 1 To .Tables.Count
- .Tables(i).Select
- For Each c In Selection.Cells
- str = c.Range.text
- If InStr(str, "aaaa:") Then
- j = InStr(str, "aaaa:")
- c.Select
- Selection.HomeKey
- Selection.MoveRight unit:=wdCharacter, Count:=j + 4, Extend:=wdMove
- Selection.MoveDown unit:=wdParagraph, Count:=3, Extend:=wdExtend
- Selection.Font.Size = 9
- End If
- Next
- Next
- End With
- End Sub
复制代码
此乃word宏,请在word当中新建模块运行此代码 |
|