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
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