View Single Post
  #3   Report Post  
TricksOfMind
 
Posts: n/a
Default

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

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

Rgds.

"Howard Lee" a écrit dans le message de news:
...
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?