
Signature
Frank Perry
LavaLeaf Software
Frank Perry was telling us:
Frank Perry nous racontait que :
> Howdy,
>
> I need to call UndoClear periodically during a process. The problem
> is that the process runs for hours and Word grows to 300+ Megs and
> crashes before the process finishes. Alas, I don't control what goes
Why not?
> on in the process so I have to find a way to clear the undo stack
> periodically.
[quoted text clipped - 11 lines]
>
> Thanks for any help.
Have you tried calling the sub FileSave()? This is the save that is called
when a user clicks on Save or does CTRL-S. I do not know if this is called
by your process.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Frank Perry - 28 Apr 2006 16:23 GMT
Howdy,
I can't change the process because it is in a COTS package and we don't have
source code.
I have tried to intercept the Save function but when it runs, I get an error
Compiler Error:
Member already exists in an object module from which this object module
derives.
There is an earlier post to this group for a similar problem. I tried
various versions of their suggestions and I still get the error. I even
removed the Save from inside my call and still got the same error.

Signature
Frank Perry
LavaLeaf Software
> Frank Perry was telling us:
> Frank Perry nous racontait que :
[quoted text clipped - 26 lines]
> when a user clicks on Save or does CTRL-S. I do not know if this is called
> by your process.
Jean-Guy Marcil - 28 Apr 2006 17:28 GMT
Frank Perry was telling us:
Frank Perry nous racontait que :
> Howdy,
>
[quoted text clipped - 5 lines]
> Member already exists in an object module from which this object
> module derives.
Sounds like your COTS package (COTS?) already intercepts the FileSave
procedure...
Maybe you can try the BeforeSave event:
http://word.mvps.org/faqs/macrosvba/AppClassEvents.htm

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org