Thread: [Solved] Delete a table of contents
View Single Post
 
Old Today, 07:46 AM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,639
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Charles,


That is odd. I just ran both my first macro and John's on your document and both appear to do the same thing. Yes, John's works. The only reason I posted the alternative was I like to avoid using "selection" when possible.


As best I can tell .ExecuteMso(TableOfContentsRemove) does mimic the Alt S T R keyboard accelerators.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote