Hello all
I have a word file and I want to restrict a copy paste in it, so I need to write a macro for that word file, I know how to write it but i want to do it programmatically using vb.net

How can i do that ? Macro should run for that specific file

Here is my macro

Code:
Sub EditCopy()
MsgBox “Forbidden”, vbExclamation
End Sub

Sub EditPaste()
MsgBox “Forbidden”, vbExclamation
End Sub
Please help

Thanks in advance