1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Sub TailleTableau()
Dim intLigne As Integer
Dim intCol As Integer
Dim i As Integer
Dim j As Integer
Dim para As Paragraph
Dim a
i = 0
j = 0
intCol = ActiveDocument.Tables(1).Columns.Count
intLigne = ActiveDocument.Tables(1).Rows.Count
For i = 1 To (intCol - 1)
For j = 1 To (intLigne - 1)
ActiveDocument.Tables(1).Cell(j, i).Range.Select
For Each para In Selection.Paragraphs
a = Len(para.Range.Text)
Debug.Print " a : ", a
If a > 2 Then MsgBox para.Range.Text
Next para
Debug.Print "Cell : "; j, ",", i, "Nbre Para : ", Selection.Paragraphs.Count,
Next j
Next i
End Sub |
Partager