views:

252

answers:

2
A: 

You might try turning automatic pagination off while adding the lines, to see if that helps.

Application.Options.Pagination = False
Gary McGill
No unfortunately this doesn't work, but I do get one extra correctly formatted block. After that it still breaks
oreon
+2  A: 

Try to apply the formatting using a defined style. See if that makes a difference.

codeape
I'm also wondering why on earth anyone would want to format *every single line* directly when their format does not differ at all.
Tomalak
It is not every line. I just reapply the format every block of 10 lines. In the real script way more stuff is going on between the blocks.
oreon
This solved the problem for me. I can see that this is the cleaner way, so thats great. But I still think Word has some kind of memory leak here. Maybe this 'fix' just pushed the boundaries up a bit...Thanks a lot anyway, my problem is gone and thats the most important thing!
oreon
Yes, I think you are right about the memory leak.
codeape