Hi! I am writing a program that puts together a bunch of documents.
Sometimes, I need to undo the call for InsertFile() if number of pages in the
resulting document exceeds a certain number.
I can not figure out how to Undo the insertFile() call. I was thinking of
having 2 sets of files and write to the resulting file only if InsertFile()
into my temp document does not exceed the # of pages. However, this solution
seems a bit cumbersome to me.
Any suggestions / code samples / URL's are greatly appreciated
Tony Jollans - 05 Nov 2005 10:08 GMT
Have you tried ...
ActiveDocument.Undo
--
Enjoy,
Tony
> Hi! I am writing a program that puts together a bunch of documents.
> Sometimes, I need to undo the call for InsertFile() if number of pages in the
[quoted text clipped - 6 lines]
>
> Any suggestions / code samples / URL's are greatly appreciated