Intercept Word Build-in commands using VBA ?

J

Jim

Hi all,

In Word 2007 I'm looking to detect a manual TOC update in order to
automatically turn OFF and ON Word's Review mode.


For the moment, the only clues I'm aware of are based on "events catching"
or
"functions overloading" techniques.

* The build-in commands I found are : UpdateToc and UpdateTocFull (got them
from here : http://www.word.mvps.org/FAQs/General/CommandsList.htm)
--> but dunno how to intercept them (if it's even possible...).

* Recording a macro in Word gave me the UpdateTableOfContents function which
I
successfully overloaded in the Microsoft "Word Objects > ThisDocument"
section.
--> Saddly in this case, the new function would only be triggered if TOC is
updated through the ribbon and not if a right clic is performed on the TOC,
followed by the user selecting the "update" option from the contextual menu.


Well that's all and I'm stuck at this point.
Got an idea ? How would you do it ?

Thks in advance,
Jim.
 

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