Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 09-14-2020, 07:18 AM
Guessed's Avatar
Guessed Guessed is offline Message box to input a value Windows 10 Message box to input a value 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

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
Attached Files
File Type: dotm Test.dotm (27.3 KB, 8 views)
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
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
Message box to input a value Message replys are shown at the bottom of the message, how can I get them to the top Gardy Outlook 3 05-23-2012 01:20 AM
Message box to input a value Input Box ubns Word 2 04-13-2012 06:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft