|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Comment effacer dans un document, une teable des matières, don je ne connait pas l'emplacement
Bonjour à tous
Je voudrais, dans un document, effacer une table des matières dont je ne connais pas l'emplacement Ceci en VBA Word Quelqu'un a-t-il une idée Merci de me répondre |
#2
|
|||
|
|||
Oups !!
J'ai oublié de dire que le document est ouvert au moment de l'action, ça peut faciliter les choses |
#3
|
||||
|
||||
Par exemple:
Code:
Sub Demo() With ActiveDocument While .TablesOfContents.Count > 0 .TablesOfContents(1).Delete Wend End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[W10, office 2013] couleurs s'inscrivent pas dans les macros quand je les enregistre | sentinel166 | Word VBA | 6 | 08-24-2017 06:24 PM |
A nifty tool to jump from table to table, comment to comment | Bengt | Word | 3 | 05-13-2015 01:53 PM |
Eliminate the Comment section when printing a document | Barry Nann | Word | 2 | 11-03-2014 07:33 AM |
from one comment to next comment | gsrikanth | Excel Programming | 0 | 06-15-2012 10:52 PM |
How to insert a (balloon) comment and how to disable comment feature in Word2007? | pstein | Word | 2 | 03-31-2012 05:31 AM |