finding a table when processing paragraph at a time

Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

finding a table when processing paragraph at a time

Post by Robie »

Hi

If I am processing a word document *one* paragraph at time (as I need to format the input text and produce different output), is there any way I can pickup the *whole* table and continue processing after it?
For example
24.png
Thanks.
Robie
You do not have the required permissions to view the files attached to this post.

User avatar
StuartR
Administrator
Posts: 12650
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: finding a table when processing paragraph at a time

Post by StuartR »

Code: Select all

    For Each para In ActiveDocument.Content.Paragraphs
        If Not para.Range.Information(wdWithInTable) Then
            ' Do your processing here
        End If
    Next para
StuartR


Robie
5StarLounger
Posts: 656
Joined: 18 Feb 2010, 14:26

Re: finding a table when processing paragraph at a time

Post by Robie »

StuartR wrote:

Code: Select all

    For Each para In ActiveDocument.Content.Paragraphs
        If Not para.Range.Information(wdWithInTable) Then
            ' Do your processing here
        End If
    Next para
Thank you Stuart.