Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2022, 12:13 AM
pf_82 pf_82 is offline Delete linked paragraphs simultaneously in Word? Mac OS X Delete linked paragraphs simultaneously in Word? Office 2021
Novice
Delete linked paragraphs simultaneously in Word?
 
Join Date: Jan 2022
Posts: 2
pf_82 is on a distinguished road
Default Delete linked paragraphs simultaneously in Word?

Hello,


I have created a "master contract" in word which covers numerous products (let's call them A, B and C). It is a very long document and 80% of the text in the master contract is common to all products, with the remaining bits specific to either A, B or C. What I would really love is to figure out some way whereby I can very easily/quickly delete all text related to B and C if I'm preparing the contract for product A.

Is there any way of doing this via hyperlinks or otherwise? Manually going through and deleting all paragraphs associated with B and C is extremely time consuming.

Note that the paragraphs are numbered, have titles and have sub-paragraphs, thus using a common style to quickly find and delete associated paragraphs is probably not a good approach.

Thank you.
Reply With Quote
  #2  
Old 01-26-2022, 04:20 PM
Guessed's Avatar
Guessed Guessed is offline Delete linked paragraphs simultaneously in Word? Windows 10 Delete linked paragraphs simultaneously in Word? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
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

Tag the product specific sections by putting them in Rich Text (or plain text) Content Controls. Use either the Title or Tag properties for each of these CCs to show what product the section relates to.

Then you can use a macro to quickly show/hide or permanently remove the CCs chosen as not relevant. A basic example of this is shown below
Code:
Sub ShowMe()
  Dim aCC As ContentControl
  For Each aCC In ActiveDocument.ContentControls
    If aCC.Title = "A" Then
      aCC.Range.Font.Hidden = False
    Else
      aCC.Range.Font.Hidden = True
    End If
  Next aCC
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 02-04-2022, 04:20 AM
pf_82 pf_82 is offline Delete linked paragraphs simultaneously in Word? Mac OS X Delete linked paragraphs simultaneously in Word? Office 2021
Novice
Delete linked paragraphs simultaneously in Word?
 
Join Date: Jan 2022
Posts: 2
pf_82 is on a distinguished road
Default

Andrew, many thanks. Any chance I could get in touch for you to do some work for us around this topic? Whilst the logic seems to make sense, I'm not very familiar with the functionality you talk to (Content Control and macros), so thought perhaps you might be able to do some work for us on this. I couldn't seem to find a contact for you or Chrysalis Design. Thank you.
Reply With Quote
Reply

Tags
delete, link text



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete linked paragraphs simultaneously in Word? delete 1 or 2 adjacent duplicate paragraphs, macro moorea21 Word 4 11-01-2018 12:53 PM
Macro Needed to delete Unwanted paragraphs within a table. frustrated teacher Word VBA 0 06-05-2015 12:47 PM
Delete linked paragraphs simultaneously in Word? Word thinks 1 sentence is 2 paragraphs and won't let me delete the extra paragraph symbol jrasicmark Word 1 12-05-2014 01:50 AM
Delete linked paragraphs simultaneously in Word? Macro Needed to delete Unwanted paragraphs in series frustrated teacher Word VBA 1 05-02-2014 03:32 PM
Delete lots of empty space between paragraphs. FieldTechnician Word 4 10-25-2013 01:14 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:21 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