Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2017, 07:49 AM
Claude Azoulai Claude Azoulai is offline Windows 7 64bit Office 2016
Novice
 
Join Date: Sep 2017
Posts: 4
Claude Azoulai is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 09-20-2017, 09:02 AM
Claude Azoulai Claude Azoulai is offline Windows 7 64bit Office 2016
Novice
 
Join Date: Sep 2017
Posts: 4
Claude Azoulai is on a distinguished road
Default

Oups !!
J'ai oublié de dire que le document est ouvert au moment de l'action, ça peut faciliter les choses
Reply With Quote
  #3  
Old 09-20-2017, 03:26 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

Thread Tools
Display Modes


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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft