Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2019, 02:13 PM
pbassett pbassett is offline Can't Protect after making changes Windows 7 64bit Can't Protect after making changes Office 2010 64bit
Novice
Can't Protect after making changes
 
Join Date: Feb 2017
Posts: 6
pbassett is on a distinguished road
Default Can't Protect after making changes

My application removes certain sections from a Word template. That part works, but when I save this for the user the document is still unprotected after this statement:



Code:
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
The only way to get the document back to the pre-unprotected state (drop-downs work, only form fields can be edited) is by the usual manually selecting Restrict Editing and then click Start Enforcing Protection. But I thought my Protect statement did that.
Reply With Quote
  #2  
Old 09-20-2019, 09:34 AM
pbassett pbassett is offline Can't Protect after making changes Windows 7 64bit Can't Protect after making changes Office 2010 64bit
Novice
Can't Protect after making changes
 
Join Date: Feb 2017
Posts: 6
pbassett is on a distinguished road
Default

Oops - I fixed it.
I had not loaded the Work library from Access so it didn't know what the constant wdAllowOnlyFormFields meant
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I un-protect docs I didn't protect? doctorduncan Word 4 05-30-2019 11:09 AM
Can't Protect after making changes Protect Watermark yvessr Word 4 05-30-2019 01:06 AM
Protect sheets DIMI Excel Programming 1 02-24-2019 07:02 AM
can you protect only one line parshla Excel 2 09-11-2016 03:51 PM
Can't Protect after making changes Need to protect my name in a presentation! SuperMario PowerPoint 1 02-21-2015 09:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft