![]() |
#12
|
||||
|
||||
![]()
Replace the code in the ThisDocument module with this
Code:
Private Sub Document_ContentControlOnExit(ByVal myCC As ContentControl, Cancel As Boolean) Dim aCC As ContentControl, strSet As String If myCC.Title = "EmploymentType" Then strSet = myCC.Range.Text For Each aCC In ActiveDocument.ContentControls If aCC.Title <> "EmploymentType" Then aCC.Range.Font.Hidden = aCC.Title <> strSet 'hide if CC title doesn't match selected employment type End If Next aCC End If ActiveWindow.View.ShowAll = False ActiveWindow.View.ShowHiddenText = False End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create Custom Form in Outlook 2016, for the Message setting 'Do not include original message' | jsvictor1989@gmail.com | Outlook | 0 | 01-30-2019 10:54 PM |
trouble with input box | gummybear | Excel Programming | 0 | 12-04-2018 06:39 AM |
Need Help on Input Video into PPT | agus | PowerPoint | 2 | 07-13-2015 02:25 AM |
![]() |
Gardy | Outlook | 3 | 05-23-2012 01:20 AM |
![]() |
ubns | Word | 2 | 04-13-2012 06:28 AM |