View Single Post
 
Old 03-22-2023, 02:41 PM
fops fops is offline Windows 10 Office 2019
Novice
 
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