Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
0 down vote
favorite


i need to create a program which search for docm files in a directory and check all files one by one for macros, check that macros are protected or not in a particular file. if they are protected then remove password from them by using master password.

can you please guide me how to remove protection / passwords using c# from macro in ".docm" file if i know the password.

thanks in advance.
Posted

1 solution

You are probably going to need to use the Microsoft.Office.Interop.Word namespace[^]. Google should find you some samples on its use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900