Preventing Reoccuring Dialog Boxes

G

Greg

Can you provide and example of one of these dialog boxes that pops up
when performing a MicroSoft Word operation?
 
H

Howard Lee

During some operations, I get a pop up dialog box warning me that this or
that operation can't undone. Even though I don't care about the message at
the moment, the appearance of the dialog box halts the current operation.
This prevents me from walking away during long operations, such doing it
over lunch or overnight, because I have to keep hitting Yes or No.

Is there a way to suppress these dialogs?
 
T

TricksOfMind

Just add " ActiveDocument.UndoClear " in your macro, eg :

ActiveDocument.Fields.Update
For Each myTOC In ActiveDocument.TablesOfContents
myTOC.Update
ActiveDocument.UndoClear
Next

Rgds.
 
H

Howard Lee

The most common instance is when I'm making a Word-based PDF (in that it has
to check an extensive number of links in the long document), Word invariably
gives me "Memory Low. This operation can't be undone. Continue Yes/No" kind
of error. Even if nothing is running.
 
G

Greg Maxey

Howard,

I have never seen that dialog and can't generate it here. You might check
Google Groups "Word" and do a search on "Memory low". There are a few
postings there describing a similiar problem and the common thread appears
to be "Virtual memory."
 
H

Howard Lee

Thanks. I'll look into it.

There is a KB article at Microsoft
(http://support.microsoft.com/default.aspx?scid=kb;en-us;240410). The
message has nothing to do with memory per se, but rather there being too
many hidden bookmarks caused by repeated updating of TOCs. It's an oddly
worded message if that's really the case. Although cleaning them out as the
article describes reduces the number of the dialogs, it's still a non-zero
occurrence and I'm back to the original problem - I can't leave the process
unattended during the (very) long generation of the PDF from within Word.
This may be one of those things I have to live with.
 
G

GH

Thanks Greg

you have partely solved my problem. The title of my question was: "My
document grows faster and faster".

I used the macro and the the file shrinked 70%.

However, I can not convert to RTF. Word hangs.

Do you have some more advices?

Regards
Georg
 

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