![]() |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
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 |
#3
|
|||
|
|||
![]()
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.
|
![]() |
Tags |
delete, link text |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
jrasicmark | Word | 1 | 12-05-2014 01:50 AM |
![]() |
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 |