Disable word asking notes

S

Sasa

I got this problem.
When I use macro for formating tables in long document,
Word (after few formated tables) keep asking if I realy
want to do this, because it has an insufficient memory and
tells me that there will be no possibility to undo this
action.
I want to disable this asking note, because i wont use
undo action.
Thank you for helping me out.

Batovanja Sasa
 
M

Michael Bednarek

When I use macro for formating tables in long document,
Word (after few formated tables) keep asking if I realy
want to do this, because it has an insufficient memory and
tells me that there will be no possibility to undo this
action.
I want to disable this asking note, because i wont use
undo action.

Try this method in your macro code:
ActiveDocument.UndoClear
 
J

Jonathan West

Hi Sasa

There's no way you can suppress this message box, but you can try various
measures to make word decide that it doesn't need to show it. Try doing on
or other of the following somewhere within the main loop of your code.

1. clearing the undo stack, using the Undoclear method

2. Saving the document.

3. Saving, closing and re-opening the document.

Those three options are in order of preference. If just clearing the undo
stack will do the trick then great, but I've known cases where option 3
really was necessary every so often.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top