![]() |
|
|
|
#1
|
||||
|
||||
|
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 |
|
| Tags |
| delete, link text |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |
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 |