protection error while running the macros in msword

Joined
Feb 27, 2012
Messages
1
Reaction score
0
Hi,
I am running the delete method in ms word 2010 macros. I didn't put any protection password for this project. but when I run the below method am getting the error Error(50289):can't perform the operation since project is protected.

Set vbCom = Application.VBE.ActiveVBProject.VBComponents
vbCom.Remove VBComponent:=vbCom.Item("NewMacros")

please tell me the solution for this
 
Last edited:

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