Thread: [Solved] Delete a Line in a TOC
View Single Post
 
Old 11-26-2024, 03:00 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Normally the stepping backwards through objects is necessary when items in the list are being deleted.

Now that the last posted code is not actually deleting the paragraphs we could step forwards but if we did, we would need to handle the logic because we may have just changed away from TOC 1.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote