Locking down an image.

J

Josh

I have a template that uses VBA to place an image on the user's
document and automaticly save itself to a network drive. the code
saves the document as read only w/ password protection. My problem is
that you can still copy and paste the image off of the document. It's
very important that users are not allowed to do this. Any help will
be great.

This is my code to insert the image:

ActiveDocument.Bookmarks("sig").Range.InlineShapes.AddPicture _
FileName:="C:\PhyData\" & UserForm1.ComboBox2 & ".JPG", _
LinkToFile:=False, SaveWithDocument:=True

and this is my code to lock the document:

Sub ReadOnlySet()
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect wdAllowOnlyReading, True, "123"
Else
ActiveDocument.Unprotect "123"
ActiveDocument.Protect wdAllowOnlyReading, True, "123"
End If
ActiveDocument.Save
End Sub
 
R

Russ

Put a password on the file?
If it can be opened, then it can't be totally protected probably.
A password protected pdf file comes close. But a user can take a snapshot of
a screen or window. If you do find an answer, please post back and tell the
group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top