Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2021, 10:55 AM
shaun0406 shaun0406 is offline Clear Button For Specific Content Control Windows 10 Clear Button For Specific Content Control Office 2010
Novice
Clear Button For Specific Content Control
 
Join Date: Dec 2020
Posts: 19
shaun0406 is on a distinguished road
Default

I modified the line


Code:
aCC.Range.Text = ""
to
Code:
aCC.Range.Delete
With the range.text, I couldn't clear the annual fields in a protected documents. But with Range.Delete I was able to clear the annual fields with no problem

But this works perfectly, Thank You!
Reply With Quote
Reply

Tags
clearcontents, content control, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to get a word document to send specific content via email using submit button ActualJax Word VBA 2 07-06-2020 04:18 PM
Clear Button For Specific Content Control Finding specific Content Control based on both title and tag ZaSpai Word VBA 4 03-31-2019 11:37 AM
Adding Row with Content control using Command Button baes10 Word VBA 0 12-13-2017 11:30 AM
Content Control Option Button Oops warbird Word VBA 5 12-07-2017 06:53 AM
Clear Button For Specific Content Control Code to Sum Column of Content Control Values In Specific Tables? warbird Word VBA 2 07-13-2015 05:44 AM

Other Forums: Access Forums

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