|
参考使用- Sub test()
- Dim Rng As Range, Tbl As Table, Cel As Cell, N&
- Set Rng = Selection.Range
- For Each Tbl In ThisDocument.Tables
- For Each Cel In Tbl.Range.Cells
- If Cel.Range.Start <= Selection.Range.Start And Cel.Range.End >= Selection.Range.Start Then
- N = Cel.Range.Information(wdFirstCharacterLineNumber)
- ThisDocument.Range(Cel.Range.End, Cel.Range.End).Select
- Selection.MoveDown wdLine, 1
- N = Selection.Range.Information(wdFirstCharacterLineNumber) - N
- Rng.Select
- MsgBox N
- Exit For
- End If
- Next Cel
- Next Tbl
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|