View Single Post
 
Old 11-24-2023, 01:43 AM
Borcki Borcki is offline Windows 11 Office 2021
Novice
 
Join Date: Nov 2023
Posts: 2
Borcki is on a distinguished road
Default If ContentControl CheckBox 1 is Checked Uncheck CC CheckBox2

Hey all,

i am relatively new to microsoft word vba and am getting frustrated. I had already gotten my document to run with the VBA script but then I realized that there is no print preview when you want to print. At that time I had two ActiveX checkboxes (CheckBox1 and CheckBox2).
I noticed that the print preview under "Print" is deactivated when one of the checkboxes is checked. Why is this the case?
The code was actually only "If CheckBox1 is selected, checkbox2 should not be selected and the bookmark "Login" should be displayed".

Now I am changing the two checkboxes to "ContentControl Checkboxes". I have already managed to display table 1 (with the bookmark "Registration") when you have selected "Check1". Now I have to get it back so that table 2 ("Logout") is displayed for "Check2" and "Check1" is unchecked and table 1 becomes invisible again.

Do you have any ideas for me?

All the VBA experts are smiling now, but I am slowly getting desperate ^^.

Thank you all for the help.

Greetings.
Reply With Quote