> VBA Gerus,
>
[quoted text clipped - 7 lines]
>
> Thanks from Texas
Hi Charlie,
I guess you're doing a lot of Find/Replace? Word can be forced to create a
lot of temporary files if you do that, so it can undo all those changes.
You could try if clearing the Undo-buffer now and then helps:
ActiveDocument.UndoClear
And/Or have the macro save the document:
ActiveDocument.Save
If your document is just text (no tables, text boxes, or fields), you could
read the whole text into a string (sText = ActiveDocument.Content.Text), and
try to do as much of the work as possible on the string rather than on the
document.
Say in the string, you find some position you want to insert text (with say
InStr), you can then set a range to that position in the document, and
insert your comment.
If these tips don't help, maybe post some code you use that's too slow...
Regards,
Klaus
Charlie Mac - 21 Feb 2008 20:10 GMT
Klaus,
Sorry it took me so long to get back.... Thank you for your
suggestion...the ActiveDocument.UndoClear works great.
Take care,
Charlie in Texas
On Thu, 7 Feb 2008 07:39:24 +0100, "Klaus Linke"
<info@fotosatz-kaufmann.de> wrote:
>> VBA Gerus,
>>
[quoted text clipped - 30 lines]
>Regards,
>Klaus
Klaus Linke - 22 Feb 2008 12:00 GMT
Glad it did the trick!
Regards,
Klaus