国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

vba Word表格批量刪除含有某一字符的指定行

2021-01-28 15:48 作者:北阪有桑123  | 我要投稿

Sub del_key()

? ? Dim str As String

? ? Dim table_count, i, j, table_lie As Integer

? ? str = "年度"

? ? table_count = ActiveDocument.Tables.Count

? ? For i = 1 To table_count

? ? ? ? table_lie = ActiveDocument.Tables(i).Rows.Count

? ? ? ? For j = 1 To table_lie

? ? ? ? ? ? If InStr(ActiveDocument.Tables(i).Cell(1, j), str) > 0 Then

? ? ? ? ? ? ? ? ActiveDocument.Tables(i).Cell(1, j).Select

? ? ? ? ? ? ? ? Selection.Rows.Delete

? ? ? ? ? ? ? ? With ActiveDocument.Tables(i)

? ? ? ? ? ? ? ? ? ? .PreferredWidthType = wdPreferredWidthPercent

? ? ? ? ? ? ? ? ? ? .PreferredWidth = 110

? ? ? ? ? ? ? ? ? ? End With

? ? ? ? ? ? ? ? End If

? ? ? ? ? ? Next

? ? ? ? Next

End Sub


/**/

我是刪除的所有表格中含有年度的那一行

vba Word表格批量刪除含有某一字符的指定行的評論 (共 條)

分享到微博請遵守國家法律
竹溪县| 循化| 那曲县| 惠州市| 姚安县| 上思县| 天气| 乐昌市| 林周县| 芷江| 莆田市| 双流县| 星子县| 泗洪县| 涟源市| 武邑县| 措勤县| 团风县| 吉安市| 晋州市| 榆中县| 彭泽县| 平潭县| 德州市| 和平区| 商河县| 高阳县| 大方县| 安庆市| 新丰县| 永寿县| 股票| 邳州市| 关岭| 楚雄市| 汝城县| 永仁县| 长沙市| 易门县| 齐河县| 德阳市|