Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-10-2019, 03:49 AM
Saul Saul is offline Delete Hidden content control Windows 10 Delete Hidden content control Office 2016
Novice
Delete Hidden content control
 
Join Date: Oct 2019
Posts: 2
Saul is on a distinguished road
Default Delete Hidden content control

I have form that hides content control rich text
I would like the user to have an option to erase hidden content control :

Private Sub cmdEraseblank_Click()
Dim cc As ContentControl

For Each cc In ActiveDocument.ContentControls
If cc.Range.Font.Hidden = True Then
cc.Range.delete True

End If



Exit For

Next cc

End Sub



Cheers,
Reply With Quote
 

Tags
content control, delete, hidden



Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Control content deleted when re-uploading to SharePoint Peterson Word 5 06-27-2018 08:13 PM
Delete Hidden content control One Content Control Checkbox checks another Content Control Checkbox DEsh Word VBA 2 10-06-2017 08:23 PM
how to get control/option-delete to only delete the word and not the preceding space microsofthelp Word 0 11-20-2016 04:34 AM
Delete Hidden content control Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
Delete Hidden content control Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM

Other Forums: Access Forums

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