Quote:
Originally Posted by gmaxey
Charles,
As best I can tell .ExecuteMso(TableOfContentsRemove) does mimic the Alt S T R keyboard accelerators.
|
Thank you for the lead on this. The full command line is
Application.CommandBars.ExecuteMso("TableOfContent sRemove") and it does act the same as using the menu command.
I've added your second macro to my web page on Complex Documents under
Removing a Table of Contents. I linked back here.