Can I create a template (add-in) to disable copy a Microsoft Office Word file?

Hello experts,

I saw a solution to disable some functions on Microsoft Word File is create macro function with empty content. I want disable copy, so I create a module with an empty function:
Sub EditCopy()
The copy function is disabled as expected. I want to reuse the template so save it as template (.dot). But I can't reuse it. I don't see function EditCopy when load the .dot file to another Microsoft Word file so the function copy is still enable.

Can you help me? I need a flexible solution to disable any file .doc file I want.

Thanks alot
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

what if i disable the macros & open the word file?
how will you prevent file level copying from explorer
As kishoreb indicates, it is easy to get round. However try putting the template in the Word Startup folder.
I think you're looking at a disambiguation problem (yes, that's a real word): You're not actually disabling the Copy function, you're just hiding it by creating another macro with the same name, "EditCopy". When Word encounters two macros with the same name, it resolves the ambiguity -- "disambiguates" the problem -- by extending the name of both macros to include their parent objects, continuing to do so until the two names are unique.

For example, if you have a macro in the NewMacros module of your personal template called "MyMacro", when you look up the list of all available macros you'll see "MyMacro" listed there in alphabetical order along with all the other available macros (see Image 1, below). However, if you add a second macro, also called "MyMacro", to another module in the same template, neither macro shows up in the list of available macros under the name "MyMacro". Instead, both show up with the name of the parent module prepended to the macro name (see Image 2, below).

When you copy in a template containing a macro called EditCopy, that's why you can't find the macro anymore: It's disambiguated to another name. Try looking for it under the name of the module in the template, or, failing that, the name of the template itself, followed by the module name, followed by the macro name EditCopy: [Template].[Module].EditCopy.

That's also why kishoreb and GrahamSkan say it's easy to get around this "disabling" approach: All a user has to do is look deeper into the list of available macros.
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

partnerex_devAuthor Commented:
Do we have another way to disable copy? Please help me if you have another solution.

only copy protected PDF is the solution
kishoreb123 is right, about the only way to completely disable the Copy function is to turn the document into some sort of image file, and even then there's no way I can think of to keep someone from executing a Save As or something similar to get a copy of the whole document. It sounds like you're looking for a document management solution.

On the other hand, if Word is your only option, you can try protecting the document (through the Tools menu). If you protect the document as a Form but don't include any Form fields, then the user can't edit or select any portion of the document. If you apply a password, that gives you greater assurance that the user won't just go to Tools | Unprotect and turn off the protection.

There's always a way around any of this, of course, but this keeps all but the most determined plagiarists from copying portions of the document. Good luck.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
partnerex_devAuthor Commented:
Thanks PandaPants, kishored123 and GrahamSkan. Solution protecting the document as a form works enough for me. (Can't selection is not good but is acceptable)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.