C
Conny Roloff
Hi,
with VBScript I process all paragraphs of a doc with the following code:
1 For Each parag In myDoc.Paragraphs
2 If parag.Range.Information(wdWithInTable) = True then
3 WScript.Echo "--- This paragraph is part of a table"
4 End If
5 myText = parag.Range.Text
6 ' ... do something with myText ...
7 Next
This code works but it is slow. I read that it is much faster with find
to walk thru all paragraphs but neither I could find an example (only
hints) nor I could find it out by myself.
Can somebody help? Many thanks in advance.
Happy New Year
` | ´
- * -
´ | `
--Conny
with VBScript I process all paragraphs of a doc with the following code:
1 For Each parag In myDoc.Paragraphs
2 If parag.Range.Information(wdWithInTable) = True then
3 WScript.Echo "--- This paragraph is part of a table"
4 End If
5 myText = parag.Range.Text
6 ' ... do something with myText ...
7 Next
This code works but it is slow. I read that it is much faster with find
to walk thru all paragraphs but neither I could find an example (only
hints) nor I could find it out by myself.
Can somebody help? Many thanks in advance.
Happy New Year
` | ´
- * -
´ | `
--Conny