I have a macro that looks through each paragraph in a document, like so:
Dim para as Paragraph
For each para in ActiveDocument.Paragraphs
a = a + 1
However, if there is a table in the document then it naturally looks through each cell of the table separately. I don't want it to look at tables, so if there are lots of tables in the document, I'm running lots of unnecessary iterations! I forget my exact solution, but it was something like this...
If ActiveDocument.Paragraphs(a).Range.Tables.Count > 0 Then next paragraph
Run lots of code
That checks each paragraph to see if it's in a table... if it is then it skips to next paragraph and checks there. But is there any way to make it skip straight to the end of the table? I do not want to use 'select' because it will cause complications later on.