Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-25-2023, 01:41 AM
Borcki Borcki is offline If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2 Windows 11 If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2 Office 2021
Novice
If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2
 
Join Date: Nov 2023
Posts: 2
Borcki is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
Is there some code that you would like for us to look at?
Good morning,

oh sorry ive forgot to put the code for the ActiveX CheckBoxes. The code was

Privat Sub CheckBox1_Click()
If CheckBox1.Value = True Then
ActiveDocument.Bookmarks("Login").Range.Font.Hidde n = False
End If
If CheckBox1.Value = True Then CheckBox2.Value = False
End If
End Sub

Privat Sub CheckBox2_Click()
If CheckBox2.Value = True Then
ActiveDocument.Bookmarks("Logout").Range.Font.Hidd en = False
End If
If CheckBox2.Value = True Then
CheckBox1.Value = False
End if
End Sub

So the code only should show a bookmark and uncheck the other checkbox. But if you select a checkbox and you fill out the bookmark(its a table) your print preview is gone. If you didnt check a checkbox the print preview is still visible.

Now i wanna try this with the contentcontrol checkboxes.

Or do you have an idea why the print preview got disabled?

Thank you for your help

Last edited by Borcki; 11-25-2023 at 03:13 PM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to delete ContentControl Checkboxes by Tag if a specific Checkbox is checked jlyons Word VBA 2 04-07-2022 06:49 AM
If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2 Word Formula IF checkbox checked soakn Word 1 11-21-2020 12:57 PM
VBA in Word 2010 to show certain text only when a YES checkbox is checked kdsim Word VBA 0 05-16-2018 05:16 AM
If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2 Merged Checkbox Fields Always Checked pdxplorer Mail Merge 11 12-20-2017 12:37 PM
If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2 Uncheck Checkbox Code not working if document protected bandrist Word VBA 2 08-14-2013 09:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:27 PM.


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