Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-22-2023, 02:41 PM
fops fops is offline Dynamically protect word doc Windows 10 Dynamically protect word doc Office 2019
Novice
Dynamically protect word doc
 
Join Date: Mar 2023
Posts: 6
fops is on a distinguished road
Default Dynamically protect word doc

Hi,




as in topic, I want to dynamically protect the entire doc except the actual line where the corsor is.


I think of somthing like first evaluating the lines with:


linesInDoc = ActiveDocument.BuiltInDocumentProperties(wdPropert yLines)


or chars with:


charsInDoc = ActiveDocument.Characters.Count


and based on that inforamtion protect the document.


I have a doc with vba script which extends the doc everytime the doc is opened.


The script inserts a new line with timestamp and username and below that a user can type text.


The goal is, as stated above, to protect everything except the actual line for typing the next comment.


The doc looks like in attachment.


Thank you in advance!
fops
Attached Images
File Type: jpg doc1.jpg (58.0 KB, 17 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically protect word doc How to dynamically grey out a button in customUI.xml in a ribbon of word ? Ddadoo57 Word VBA 2 03-13-2023 06:02 AM
How do I un-protect docs I didn't protect? doctorduncan Word 4 05-30-2019 11:09 AM
Dynamically protect word doc Dynamically changing drop-down list based on selection? (Word Form) laurarem Word 1 02-21-2013 10:17 PM
Dynamically protect word doc How to dynamically link imbedded Excel chart with source data from Word TBoz Excel 1 07-06-2012 05:53 PM
Dynamically protect word doc How do I dynamically update data in a Word Document from a database table RSchmidt Word 1 07-14-2011 04:27 PM

Other Forums: Access Forums

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