Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2022, 02:16 AM
elaineAda elaineAda is offline How to make checkbox disappear together with paragraph Windows XP How to make checkbox disappear together with paragraph Office 2010
Novice
How to make checkbox disappear together with paragraph
 
Join Date: Mar 2019
Posts: 25
elaineAda is on a distinguished road
Default How to make checkbox disappear together with paragraph


Hi I have the following code

Code:
Private Sub Acknowledge_Click()

ActiveDocument.Bookmarks("TextToHide").Range.Font.Hidden = Acknowledge.Value

End Sub
I have bookmark the checkbox together with the paragraph to be hidden as "TexttoHide", but it is not working.

It partially works (only hide paragraph but not checkbox) when i convert the checkbox to ActiveX.

Appreciate any help

Thanks
Reply With Quote
  #2  
Old 04-18-2022, 06:42 PM
Peterson Peterson is offline How to make checkbox disappear together with paragraph Windows 10 How to make checkbox disappear together with paragraph Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 143
Peterson is on a distinguished road
Default

Try this:
Code:
Private Sub Acknowledge_Click()
    
    Dim rngBookmark As Range
    
    Set rngBookmark = ActiveDocument.Bookmarks("TextToHide").Range
    
    rngBookmark.Font.Hidden = True
    
End Sub
Reply With Quote
  #3  
Old 04-19-2022, 06:20 PM
elaineAda elaineAda is offline How to make checkbox disappear together with paragraph Windows XP How to make checkbox disappear together with paragraph Office 2010
Novice
How to make checkbox disappear together with paragraph
 
Join Date: Mar 2019
Posts: 25
elaineAda is on a distinguished road
Default

It cannot run at all. The hidden text went missing totally.
Reply With Quote
  #4  
Old 04-20-2022, 11:12 AM
Peterson Peterson is offline How to make checkbox disappear together with paragraph Windows 10 How to make checkbox disappear together with paragraph Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 143
Peterson is on a distinguished road
Default

I'm sorry -- I now realize that I tested with a forms checkbox, not an ActiveX checkbox. I also don't have access to my computer with Office 2010 on it, though I don't think that matters. Hopefully, another forum user can help you out.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Images disappear Taktis PowerPoint 0 03-03-2017 11:24 AM
Make Outline Dashed Line Disappear Barklie Word 2 01-17-2017 01:00 AM
HELP! How to make a shape appear and disappear Firewife03 PowerPoint 1 08-21-2016 11:48 PM
HELP! How to make a shape appear and disappear Firewife03 Excel 0 08-20-2016 09:57 PM
Click a box and make only the box disappear JoelW2013 PowerPoint 0 12-09-2013 02:51 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:20 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